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
close icon

disale a special row in GridGroupingControl

Hi
how can i disable a row by condition or set it to read only in GridGroupingControl?
regards



1 Reply

RB Ragamathulla B Syncfusion Team December 26, 2011 07:50 AM UTC

Hi Shiva,

Thank you for your interest in Syncfusion products.

You can find the ReadOnly style in the row by using 'QueryCellStyleInfo' event. The following code explains the same.


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

void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.Style.ReadOnly == true)
{
Console.WriteLine(string.Format("Row{0} column{1}", e.TableCellIdentity.RowIndex, e.TableCellIdentity.ColIndex));
//code
}
}


Let me know if you have any further concerns.

Regards,
Ragamathullah B.


Loader.
Live Chat Icon For mobile
Up arrow icon