DataGridView Row Select

merianos

New member
Joined
Aug 7, 2007
Messages
3
Programming Experience
5-10
Hello all . . .

I have a question about DataGridView.

I have in a form a datagridview and some textbox elements.

All of them are binding in the same data source and I have create a CurrencyManager to show the same data in all of them.

Still no problem . ..

The problem is that i can't select a row immediately in DataGridView and at the same time to change the values of the textboxes tho show the same data with the DataGridView selected row.

For example :

if i add a new record in the database how to select the last row of the datagridview that contains the new record data ? ? ?

Thanks a lot . . . .
 
Sounds like you have something set up wrongly


You should have:
A datagridview bound to a BindingSource
A textbox(es) bound the THE SAME BindingSource
The BindingSource bound to the datatable


What's all this about currencymanager? Sounds like youre following a .NET 1.1 tutorial but you have .NET 3.. please dont follow old tutorials. Go to the DW2 link in my signature, then in the top right box choose the .NET 3.0 customised pages.. Then read about displaying data..
 
Back
Top