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.

dynamic custom cell types in the GroupingGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

29965 Jun 8,2005 05:39 AM Jun 8,2005 09:27 PM Windows Forms 1
loading
Tags: Grouping
Albie
Asked On June 8, 2005 05:39 AM

Hello I have a related grid with 3 columns: ID SourceType Parameter Value For each record in this related table I want to change the celltype depending on the value in the SourceType cell. For example: -In my 1st record the SourceType contains a value of 1, then I want the corresponding cell in the Parameter Value to bind to a combobox which relates to another DataTable. -In my 2nd record the SourceType contains a value of 2, then I want the corresponding cell in the Parameter Value column to bind to a editable textbox. etc, etc. Is this possible in the gridgrouping control, and if so, what is the best way to accomplish this? Hope you can help! Albie

Administrator [Syncfusion]
Replied On June 8, 2005 09:27 PM

To dynamically change cell values, you can handle the grid.QueryCellStyleInfo. In the event handler, you can use this code to get at the parent record of the child table that holds the requested cell. GridRecord rec = e.TableCellIdentity.DisplayElement.ParentChildTable.ParentNestedTable.ParentRecord as GridRecord;

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.

;