This is a migrated thread and some comments may be shown as answers.

Disable a row

1 Answer 195 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shirya
Top achievements
Rank 1
Shirya asked on 26 Feb 2009, 07:32 PM
Hello,
how can i disable a a row in my grid view?
Thank you
Shirya

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 27 Feb 2009, 10:42 AM
Hi Shirya,

Thank you for writing.

You can disable a row by disabling each of its cells. To do this you have to subscribe to RadGridView CellFormatting event and do the following:

void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)  
{  
     if (e.CellElement.RowIndex == rowToDisableIndex)  
     {  
         e.CellElement.Enabled = false;  
     }  
     else 
     {  
         e.CellElement.Enabled = true;  
     }  

I hope this will help you. Please write back if you need further assistance.

Greetings,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Shirya
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or