I was trying to do something similar and came across a solution that
worked for me.
Essentially I used the binding source to get the row;
myBindingSource.Position = myBindingSource.Find("Company_OPTID",
iCompanyID);
This seems to set the selected row to that position (my datagridview is
set to fullrowselect mode and multiselect is false)
Lars E. Nes wrote:
Yes i could do that, but i would also like to know how to find a row in a
datagridview with only the value (unik) of a column.
Thanks anyway
Lars E.
"chanmm" wrote:
If you are doing it with database I would suggest you only retrieve the rows
that you want isn't that easier?
chanmm
"Lars E. Nes" <Lars E. Ne*@discussions.microsoft.com> wrote in message
news:85**********************************@microsof t.com... Hi all.
I would like to automaticly select a item in a datagridview using the
value
of column[0]. I do not have the index. Just the value (which is a string).
How can this be done?
Thanks.