Thursday, May 31, 2007

DataView.Find

DataView dv=new DataView();

dv=ds.Tables[0].DefaultView;
dv.Sort=ID or Value;
string result=dv[dv.Find(ID or Value)]["ColumnName"].ToString()

No comments: