DataTable.Select and Binding.

yraykar

Active member
Joined
Oct 13, 2003
Messages
42
Hi All,

I am using a listbox in my Pocket PC Application. I am using VS.NET 2003 and PocketPC version 2003.

I tried populating the list box as following:

listBox.DataSource=DataSet.Tables[0].Select("FieldName="+FieldValue);
listBox.DisplayMember="FieldName";
listBox.Refresh();

But the data that populated was "System.Data.DataRowView".

Is it possible that i can add all the rows returned by the select method of datatable to another datatable and then use it to set the DataSource property. I am providing the proper field name for the Display member property. I dont know where i am going wrong.

Please help me out.

Regards
Yashasvi
 
Back
Top