I have a datatable that contains rows of a database table. This table has a primary key consisting of 2 columns.
Components are assigned as follows: datatable → bindingsource → datagridview. I want to search for a specific row (based on the primary key) to select it in the grid. I cannot use the bindingsource.Find method because you can use only one column.
I have access to datatable, so I do a manual search in datatable, but how can I get the position of bindingsource strings based on a data row? Or is there another way to solve this?
Im using Visual Studio 2005, VB.NET.
source share