Navigation in Datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
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
property to false. Any other ideas.
My main concern is the New line it creates for inserting data, I only want
the user to be able to edit existing data.
 
Back
Top