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

dynamic custom cell types in the GroupingGrid

Thread ID:





29965 Jun 8,2005 09:39 AM UTC Jun 9,2005 01:27 AM UTC WinForms 1
Tags: Grouping
Asked On June 8, 2005 09:39 AM UTC

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 9, 2005 01:27 AM UTC

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;


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