The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator Syncfusion Team October 1, 2003 01:11 PM UTC
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.
Stefan
ADAlberto del BarrioOctober 1, 2003 01:41 PM UTC
But you mean I override that methods or just add an event handler to the corresponding event?
ADAdministrator Syncfusion Team October 1, 2003 01:43 PM UTC
Event handler is fine.
Stefan
GGGene GorokhovskyOctober 1, 2003 02:59 PM UTC
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.
Gene
> Hi all,
>
> Is there a way I can merge two columns from my datasource into a single column in a databound grid?
>
> TIA
>