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.
I have a requirement where I need to dynamically bind a child table cell to a specific DataTable column depending on a value.
To be more specific, I have 2 colums in a DataTable - Name and Role. I need to have 1 column in my GGC called RoleOrName such that, for a particular row, if Name is empty in the DataRow, I must bind that particular cell to Role, otherwise I must bind it to Name.
This means that in the GGC column RoleOrName there will be some cells bound to Role and some cells bound to Name column of the DataTable. RoleOrName is a read-only column so I am not worried abt saving any values back to the Dataset.
I am assuming this kind of a thing needs to be done in the QueryCellStyleInfo event but I dont know how. Please Help.
STstanleyj Syncfusion Team December 28, 2005 01:39 PM UTC
Hi Anupama,
It is impossible to bind GGC cells to a datatable but you try having a CellType as comboBox and implement the same. If that helps may be you can remove the buttons and disable editing.
Best regards,
Stanley