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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

39113 Dec 27,2005 11:25 PM Dec 28,2005 08:39 AM Windows Forms 1
loading
Tags: Grouping
Anupama
Asked On December 27, 2005 11:25 PM

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 08:39 AM

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

CONFIRMATION

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.

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.

;