Link to home
Start Free TrialLog in
Avatar of rdavis101
rdavis101

asked on

Newbie: Quickly select rows based on unique value

I have a grid with many columns. One column, however, has unique values. Is there any way of programmatically selecting the row corresponding to a value of 10, for example, without checking the contents of every cell in the column?  The grid is unbound.
Avatar of rdavis101
rdavis101

ASKER

Maybe use MyTable.PrimaryKey.IndexOf   ... but how?
If you only want to show that one record, you can use a DataView to filter the results based on a column value.
Actually what I'd like to do is update that one record...but if I have a table with 1000 records, and if it's the last row in the table, I'd rather not waste time by writing a routine to fine the record myself. I was hoping there was some "built in" way of doing it. With the Janus Grid, for example, there's a Find function that takes a value and a column as arguments.
ASKER CERTIFIED SOLUTION
Avatar of Javert93
Javert93

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks dude.