views:

147

answers:

1

Hai all,

I am using DevExpress XtraGrid in c#.NET application. I want to disable or set readonly property to particular row of XtraGrid . Please Help.

+3  A: 

You can use the GridView.ShowingEditor event and set e.Cancel = true

Itay
@Itay: after binding GridView i want to disable 1 row of GridView .Is it possible by using this.?
Vyas
@Vyas: the `GridView.ShowingEditor` event is raised when the user clicks within cell. you can check in the event handler if the cell is in a disabled row and if it is set `e.Cancel = true` so that the editor will not be shown.
Itay