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.

how to disable a row in syncfusion grid

Thread ID:





68178 Sep 11,2007 09:06 AM Sep 11,2007 10:12 PM Windows Forms 1
Tags: GridControl
Asked On September 11, 2007 09:06 AM

Is their is any way to disable a row in sync fusion grid?

Rajagopal [Syncfusion]
Replied On September 11, 2007 10:12 PM

Hi Ankur,

Thanks for your interest in Syncfusion Products.

You could disable a row by directly setting the Enabled property to false for the GridStyleInfo object of that row (or) you may handle the grid.QueryCellInfo event to disable the row. Below is the code snippet.

this.grid.Model.RowStyles[rowIndex].Enabled = false;

void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
// disables 3rd row
if (e.RowIndex == 3)
e.Style.Enabled = false;

Let me know if you have any other questions.



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.