C Cor Ligthert Apr 26, 2004 #2 Hi, One of the ways is setting Datagrid1.enabled = false I hope this helps? Cor
W William Ryan eMVP Apr 27, 2004 #4 Create a Dataview based on the DataTable Dim dv as DataView = dataTable.DefaultView Bind the grid to the view. Right now, you will not notice any difference in behavior whatsoever so it's totally inobtrusive Now, set the .AllowNew property of the DataView to false.. Connull said: I want to enable editing in the datagrid so I cannot set the enabled Click to expand... property to false. Any other ideas. My main concern is the New line it creates for inserting data, I only want Click to expand... the user to be able to edit existing data.
Create a Dataview based on the DataTable Dim dv as DataView = dataTable.DefaultView Bind the grid to the view. Right now, you will not notice any difference in behavior whatsoever so it's totally inobtrusive Now, set the .AllowNew property of the DataView to false.. Connull said: I want to enable editing in the datagrid so I cannot set the enabled Click to expand... property to false. Any other ideas. My main concern is the New line it creates for inserting data, I only want Click to expand... the user to be able to edit existing data.