Make cell non-editable

I tried to use the following statement (this.dgMain.Model[3, 2].IsEditable = false) to make a cell non-editable but it still allows me to edit text in that cell. How do I make a certain cell non-editable?

4 Replies

AS Andre Slenko September 3, 2009 06:55 PM UTC

I got the answer: this.dgMain.Model[3, 2].ReadOnly = true;


MS Mohamed Suhaib Fahad A. Syncfusion Team September 7, 2009 06:50 AM UTC

Hi Andre,

Thanks for your feedbacks.

Thanks,
Fahad
Grid.WPF Team
Syncfusion Inc.,


RH Rafael Huapaya September 29, 2009 07:02 PM UTC

Private Sub GridDataControl_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles gdcActivos.Loaded
Dim grid As Syncfusion.Windows.Controls.Grid.GridDataControl = CType(sender, Syncfusion.Windows.Controls.Grid.GridDataControl)

grid.Model(grid.Model.RowCount - 1, 2).Enabled = False

End Sub


MS Mohamed Suhaib Fahad A. Syncfusion Team October 16, 2009 09:34 AM UTC

Hi Rafael,

Thanks for your post, that is also one way to do it.

Thanks,
Fahad

Loader.
Up arrow icon