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

disale a special row in GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

102101 Dec 25,2011 06:54 AM UTC Dec 26,2011 07:50 AM UTC WinForms 1
loading
Tags: GridControl
shiva
Asked On December 25, 2011 06:54 AM UTC

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



Ragamathulla B [Syncfusion]
Replied On 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.


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.

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

;