AD
Administrator
Syncfusion Team
February 26, 2003 06:34 PM UTC
The GridListControl uses the embedded grid in a virtual manner, meaning that it gets all values from Grid.QueryCellInfo on demand, and not from any values stored in the grid. So, you cannot just have code like GridListControl1.Grid.Model[row,col].Text = "abc";
as the grid does not look in its data object for the values. It gets them from QueryCellInfo.
So, you should add a handler for GirdListControl.Grid.Model.QueryCellInfo, and in your handle, check the values passed in for e.RowIndex and e.ColIndex. Based on these values, set e.Style.Text to the proper value from the datatable. You can also provide the header when e.RowIndex = 0. Make sure you set e.Handle = true when you actually set values.
Also, you can add a handler for QueryColCount and set the count in the event args to 3.