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

GridGroupingControl: how to change the cellType and cellValueType of each cell individually

Thread ID:





95415 Jul 7,2010 06:41 AM UTC Jul 8,2010 08:43 AM UTC WinForms 1
Tags: Grouping
Administrator [Syncfusion]
Asked On July 7, 2010 06:41 AM UTC

i have a GridGroupingControl, how to change the cellType and cellValueType of each cell individually?
i use TableModel but the following statements do not effective:

Grid1.TableModel[3,4].CellType = "CheckBox";
Grid1.TableModel[3,4].CellValueType = typeof(bool);


Christopher Issac Sunder K [Syncfusion]
Replied On July 8, 2010 08:43 AM UTC

Hi Ben,

Thanks for your interest in Syncfusion Products.

In GridGroupingControl, individual cell styles cannot be set through TableModel. There are certain events available to achieve this purpose: QueryCellStyleInfo & PrepareViewStyleInfo events.

this.gridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);

void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
if (e.TableCellIdentity.RowIndex == 7 && e.TableCellIdentity.ColIndex == 3)
e.Style.CellType = "CheckBox";
e.Style.CellValueType = typeof(bool);

Please let me know if you have any other concerns.



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