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.
Unfortunately, activation email could not send to your email. Please try again.

Question about insert row and columns that are read only

Thread ID:

Created:

Updated:

Platform:

Replies:

96397 Sep 9,2010 01:50 PM Sep 17,2010 01:03 AM Windows Forms 3
loading
Tags: GridControl
David Mecteaux
Asked On September 9, 2010 01:50 PM

I have a GridGroupingControl that has 10 columns. Three of these columns are read only. I also have a insert row. I noticed that you can't type anything in the insert row under those three columns. Is there a way to allow the user to type in that insert row under those three columns?


Jisha Joy [Syncfusion]
Replied On September 13, 2010 08:20 AM

Hi David,

Thank you for using Syncfusion products.

You could achieve the desired behavior by handling the QueryCellStyleInfo event and disabling the ReadOnly prperty for the required cells. See the code:



void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.ColIndex == 2 && e.TableCellIdentity.RowIndex ==6)
{
e.Style.ReadOnly = false;

}
}

Regards,
Jisha


David Mecteaux
Replied On September 16, 2010 08:25 AM

Thank you. That was very helpful.


Christopher Issac Sunder K [Syncfusion]
Replied On September 17, 2010 01:03 AM

Hi David,

Glad to know that the issue get resolved.

Thanks for using Syncfusion products.

Regards,
Christo.


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.

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.

;