ADAdministrator Syncfusion Team October 1, 2003 08:11 AM
You can override QueryCellInfo and there provide the cell information for that specific column. If QueryCellInfo does not fit your needs then try DataProviderQueryCellInfo and don't forget to set e.Handled =true;
The difference betwen those two events is:
DataProviderQueryCellInfo is called before GridModelDataBinder.QueryCellInfo gets the data from the underlying datasource and initializes the style object.
QueryCellInfo is called after that. So depending on your situation one or the other might fit better.
If you need to hide the other column you can do that with Model.HideCols.
ADAlberto del BarrioOctober 1, 2003 08:41 AM
But you mean I override that methods or just add an event handler to the corresponding event?
ADAdministrator Syncfusion Team October 1, 2003 08:43 AM
Event handler is fine.
GGGene GorokhovskyOctober 1, 2003 09:59 AM
You can also dynamically add an expression column to your table (DataTable.Columns.Add) and bind grid column to it. Of course the resulting data will be read-only.
> Hi all,
> Is there a way I can merge two columns from my datasource into a single column in a databound grid?