I have an entity set bound to a DataGridView where users can add/modify rows. When validating entries made by the user I want to highlight grid view rows with errors. The problem is that as I loop through the list of entities I cannot find which row is bound to the entity I am validating.
How would I go about solving this issue (with C# or VB.NET)?
You can find the item bound to a DataGridViewRow by its DataBoundItem property. So you can loop through the rows and do the validations per row.