-
[2005]
I have datagrid on form and there are some records that i want to show. And there are two button next and previous.
Now tell me how i can show next record when i click on next button in the datagrid and prev record when i click on the prev button.
Thanks
-
Re: [2005]
Add a condition on select statement to filter the records
-
Re: [2005]
Bind your data to a BindingSource and bind your BindingSource to a DatagridView (NOT a DataGrid). You can then call the BindingSource's MoveNext and MovePrevious methods. You can also use a BindingNavigator to automate it.