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

Question about insert row and columns that are read only

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?


3 Replies

JJ Jisha Joy Syncfusion Team September 13, 2010 12:20 PM UTC

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



DM David Mecteaux September 16, 2010 12:25 PM UTC

Thank you. That was very helpful.



CI Christopher Issac Sunder K Syncfusion Team September 17, 2010 05:03 AM UTC

Hi David,

Glad to know that the issue get resolved.

Thanks for using Syncfusion products.

Regards,
Christo.


Loader.
Live Chat Icon For mobile
Up arrow icon