Filtering Datasets

  • Thread starter Thread starter JJBean
  • Start date Start date
J

JJBean

Hi,

I am trying to use the select method in Dataset that
filters using a string.

sFindEmp = "LastName = 'Jones'";
dsEmployWC.Tables[0].Select(sFindEmp);

This runs without error but when I assign this

tbEmpNum.Text = dsEmployWC.Tables[0].Rows[0]
["Employee#"].ToString();

its not the correct record. What am I doing wrong?

Thanks,

JJBean
 
Back
Top