المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : checkedListBox problem



C# Programming
02-28-2010, 01:22 PM
hi

i was filling checkedListBox like this:

SQL = "select distinct TrapName,substr(TrapNum,1,4) from TrapTbl order by substr(TrapNum,1,4) ";
adp = new OracleDataAdapter(SQL, Conn);
dsView = new DataSet();
adp.Fill(dsView, "TrapTbl");
adp.Dispose();
this.ListAtar.DataSource = dsView.Tables[0];
this.ListAtar.DisplayMember = dsView.Tables[0].Columns[0].ColumnName;
this.ListAtar.ValueMember = dsView.Tables[0].Columns[1].ColumnName;
my question is, when i pick some items from the checkedListBox

and i press a button - how to get a list of the ID - the ValueMember ??

thank's in advance