Eduardo Fuerte
asked on
Could you point a way to obtain the a C# datatable row position after a successfull search in it?
Hi Experts
Could you point a way to obtain the a C# datatable row position after a successfull search in it?
Thanks in advance.
Could you point a way to obtain the a C# datatable row position after a successfull search in it?
// The value is founded in DataSet using the key val1
DataRow[] foundRow = dsProdutos.Tables[tabela].Select("sb_pub =" +val1);
// How to obtain the DataSet's line position that detains the value founded (?)
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Fernando!
Not a problem Eduardo, glad to help.
int index = dsProdutos.Tables[tabela].
You'll want to verify foundRow is not null before you do this.