Check out example codes for "create dropdown in datatable c# dynamically". It will help you in understanding the concepts better.

Code Example 1

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);
}

Learn ReactJs, React Native from akashmittal.com