We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





39113 Dec 28,2005 04:25 AM UTC Dec 28,2005 01:39 PM UTC WinForms 1
Tags: Grouping
Asked On December 28, 2005 04:25 AM UTC

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.

stanleyj [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon