View Full Version : vb.net creating a ds binding it to a datagrid and text boxes with navigation

11-16-2004, 11:06 PM
ok this might be complicated but bare with me.
I have a datagrid bound to a dataset, as well as some textboxes and labels (they are bound to the same ds) I also have buttons on the bottom of the datagrid that click through the dataset and changes the cursor in the datagrid while also changing the values in the textboxes. However i also have a search feature that searches through the dataset and displays the results in the datagrid. Once you search it still binds the datagrid, but the textboxes and labels lose the binding.

I then bound the text boxes in the datagrid_click function useing a datarowview, but once i do that i am not sure how to get the buttons to work.

So what is the best way to bind a datagrid and as you click some buttons on the form it will go to the next, previous, last, and first values.