This project is read-only.

Problem: Can't see the columns headers

Nov 23, 2012 at 1:07 AM
Edited Nov 23, 2012 at 1:08 AM

Well, I'm new here, sorry about my english.

I'm trying to use sourcegrid2 control, but when I'm building the columns, even with the multiple examples that I've found "googling it", everything goes fine, no errors, the values on the cells are correct, but the columnsheaders never appear :(

I don't know what I'm doing wrong... Here's an example of what I'm doing (where r is a datarow):

For i As Integer = 0 To r.ItemArray.Length - 1
Dim header As New SourceGrid2.Cells.Real.ColumnHeader("Test" & i)
        Grid1(0, i) = header


I've also tried:

For i As Integer = 0 To r.ItemArray.Length - 1
         Grid1(0, i) = New SourceGrid2.Cells.Real.ColumnHeader(r.Table.Columns(i).ColumnName)


But nothing... 

Please, what I'm doing wrong? I'm using Visual Studio 2010