GGC : How can I dynamically bind GGC cells to underlying datatable columns

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.

1 Reply

ST stanleyj 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

Loader.
Up arrow icon