I fill a dataset like this:
dim da As New SqlDataAdapter, ds As New Dataset, conn As New SqlConnection
....
da.Fill(ds, "tbl1")
datagrid1.DataSource = ds
datagrid1.DataMember = "tbl1"
When the form containing datagrid1 displays, all the records are there. The
dataAdapter, da, is based on a stored procedure which only returns a set
number of records from tbl1 on Sql Server. These records are updatable. But
I noticed that there is a new row icon * at the last row of the datagrid. I
can tab into that new row. How can I configure datagrid1 (or the dataset -
whichever) so that when I tab to the end of the last row with data it goes
back to the first row and there is no new row in the datagrid? Is there a
property setting in datagrid1 that I need to set? Or do I just have to write
code? I can see writing code to make it go back to the first record - use
currency manager. But how can I prevent the new row icon * from showing up
in datagrid1?
Thanks,
Rich