tomesco
April 2nd, 2003, 05:52 PM
hi.
i want to select fields from a table created in sqlserver using a dataset which i bind to a selectionlist. i don't know how to put the values from a column (from that table) into a list (as items).
how do i render a specific element of that column (a field)?
for example:
sel.datasource=ds;
//ds is the name of the dataset and sel is the selectionlist control
sel.databind();
after that, the items in the selectionlist are "System.Data.DataRowView", for each value that should be rendered.
thanks.
i want to select fields from a table created in sqlserver using a dataset which i bind to a selectionlist. i don't know how to put the values from a column (from that table) into a list (as items).
how do i render a specific element of that column (a field)?
for example:
sel.datasource=ds;
//ds is the name of the dataset and sel is the selectionlist control
sel.databind();
after that, the items in the selectionlist are "System.Data.DataRowView", for each value that should be rendered.
thanks.