Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

create dropdown in datatable c# dynamically

DataTable dtt1 = (DataTable)Session["dbasecolumns"];
int l = dtt1.Columns.Count;
string[] sqlcolumn = new string[l];
DropDownList drd = new DropDownList();
foreach (String colname in sqlcolumn)
{
    drd.Items.Add(colname);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #dropdown #datatable #dynamically
ADD COMMENT
Topic
Name
8+8 =