Home All Groups Group Topic Archive Search About

BindSource.Find on two columns?

Author
17 Jan 2006 2:35 PM
Steven Spits
Hi,

I have a BindingSource with an underlying table that has two keys.

I would like to set the position, but BindingSouce.Position =
BindingSource.Find("column1", key1) is not enough because I need to specify
two keys.

I also tried something like BindingSouce.Position =
BindingSource.IndexOf(dataset.table.findByKey1Key2(key1, key2)).
FindByKey1Key2 return the correct DataRow, but I can't find a way to get the
index of that row. IndexOf() doesn't do the trick.

Any ideas?

Steven

- - -

AddThis Social Bookmark Button