Make GridView non-editable in frmMain
Set gridView.OptionsBehavior.Editable to False after best-fitting columns, ensuring users cannot edit cell values directly in the UI.
This commit is contained in:
@@ -1069,6 +1069,7 @@ Public Class frmMain
|
|||||||
If gridView IsNot Nothing Then
|
If gridView IsNot Nothing Then
|
||||||
gridView.OptionsView.ColumnAutoWidth = True
|
gridView.OptionsView.ColumnAutoWidth = True
|
||||||
gridView.BestFitColumns()
|
gridView.BestFitColumns()
|
||||||
|
gridView.OptionsBehavior.Editable = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
|||||||
Reference in New Issue
Block a user