D
dbuchanan
Hello,
I am using Win forms VB 2003
The form design requires the newest records appear at the top of the
DataGrid.
I load my form with a stored procedure that orders the records with the
newest one on top of the DataGrid.
New records are added by the user by filling out the controls on the
form and clicking the 'Add' button. When the new record is added to the
DataGrid it appears at the bottom of all the records.
To put the new record back on top I am embarrassed to say that I added
code to the 'Add' (save) button that goes to the trouble of clearing
the DataGrid, and form and emptying the dataset. Then it reloads the
form.
What is the correct way to get new records to be added to the top of
the datagrid?
Thank you,
dbuchanan
I am using Win forms VB 2003
The form design requires the newest records appear at the top of the
DataGrid.
I load my form with a stored procedure that orders the records with the
newest one on top of the DataGrid.
New records are added by the user by filling out the controls on the
form and clicking the 'Add' button. When the new record is added to the
DataGrid it appears at the bottom of all the records.
To put the new record back on top I am embarrassed to say that I added
code to the 'Add' (save) button that goes to the trouble of clearing
the DataGrid, and form and emptying the dataset. Then it reloads the
form.
What is the correct way to get new records to be added to the top of
the datagrid?
Thank you,
dbuchanan