Click to See Complete Forum and Search --> : DataGrid, don't want the last row (new record), how to remove


cgchris99
October 3rd, 2002, 08:33 AM
I have a datagrid that is bound to a table.

I want the data displayed and allow the user to select a record. But I don't want the blank last row displayed. I don't want them to be able to enter new data in this datagrid. This one is for selecting a record only.

Thanks for any help

Leominora
October 4th, 2002, 05:17 AM
Dim dt as DataTable
Dim dv as DataView

dt=...

dv = New DataView(dt)
dv.AllowNew = False

dg.DataSource = dv

i hope, it helps you :)