Answers for "create dropdown in datatable c# dynamically"

C#
0

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);
}
Posted by: Guest on March-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language