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

How do I make certain rows Readonly

Thread ID:





77910 Nov 20,2008 03:08 PM UTC Nov 21,2008 01:03 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On November 20, 2008 03:08 PM UTC


I am using DGBG and bind my grid to a dataset. How do I make certain rows as readonly?

Thanks in advance.


Rajadurai C [Syncfusion]
Replied On November 21, 2008 01:03 PM UTC

Hi Raul,

Thanks for your interest in Syncfusion products.

To make certain rows Readonly, try handling QueryCellInfo event through the following code snippet.

this.gridDataBoundGrid1.Model.QueryCellInfo += new Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventHandler(Model_QueryCellInfo);

void Model_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
if (e.RowIndex == 4 || e.RowIndex ==7||e.RowIndex ==10)
e.Style.ReadOnly = true;

This makes the rows 4,7,10 as readonly.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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