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. Image for the cookie policy date

How to disable a cell in GroupingGridControl

i need to disable a cell in GridGroupingCOntrol that cell has a DropDown as a child.can any one suggest me the technique

1 Reply

AD Administrator Syncfusion Team December 6, 2006 05:09 AM UTC

Hi Pawan,

You can handle the QueryCellStyleInfo event and set Style.Enabled/Style.Clickable property to FALSE to disable the dropdown cell in a grid. Here is a code snippet.

//Code snippet disable the (5,5) cell.
private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if( e.TableCellIdentity.ColIndex == 5 && e.TableCellIdentity.RowIndex == 5)
{
e.Style.Enabled = false;
e.Style.Clickable = false;
}
}
Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon