AD
Administrator
Syncfusion Team
February 18, 2005 04:10 PM UTC
A couple of comments.
Not sure whether you are expecting this or not. Setting grid.ColStyles[i].Text does not set the text that is displayed in the column header cell. If you want to set this header cell text, you will need to set grid[0, i].Text. Setting grid.ColStyles[i].Text sets the default text for the column. If that column has any empty cells, you will see the set text in these empty cells.
If you want get the index given grid.ColStyles[index].Text, I think you will have to write a method that loops through grid.ColStyles[i].Text looking for the text, and returns the index when you find it. There is nothing in the grid class that would help you do this.
JR
Joseph Rezuke
February 19, 2005 02:11 AM UTC
Good idea! I will do that.