• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Grid and BindingSource confusion =(

SoftwareEng

Senior member
Hi guys,

I have a grid (DataGridView) bound to a BindingSource to display data from a table. How can I get at the row in the BindingSource based on a row in the grid? E.g. what does the grid's row #3 correspond to in the BindingSource?

I need this to read values for a particular row, and I don't want to get them as cell values. I need to access the underlying row object in the BindingSource.

Thanks!

I'm in VB.NET 2005.
 
It's one of the properties of the DataGridView Row... Row.DataItem I think, but something along those lines.
 
Back
Top