What you need to do is use a DataView as your grid datasource, and set your
DataView.AllowNew property to false.
The code is something like:
' Assumes you are using a DataTable as the original datasource
Sub SetupGrid(myDataTable as DataTable)
dim myDataView as DataView
myDataView = new DataView(myDataTable)
myDataView.AllowNew = False
myGrid.DataSource = myDataView
End Sub
"Neil" <ne***********@blueyonder.co.uk> wrote in message
news:Q1******************@news-binary.blueyonder.co.uk...
Doing that would make it immposible to even edit datagrid ? the problem is
I dont want inserts to appear to happen by a new row being created.
hope thats clear
Thanks
"scorpion53061" <Its the end of the world as we know it@here.com> wrote in
message news:uc**************@tk2msftngp13.phx.gbl... is there away to disable the user clicking on the datagrid row at the
bottom to create a new record , ie at moment if you click the datagrid it allows edits whihc is ok but how do you dissalow insert from being shown.
Make the datagrid read only in the properties menu.