Private void createtable ()
{
Dataset DS = new dataset ();
Datatable dt1 = new datatable ();
Datarow DR1
Dt1.columns. Add (New datacolumn ("stext", typeof (string )));
Dt1.columns. Add (New datacolumn ("svalue", typeof (string )));
DR1 = dt1.newrow ();
DR1 ["stext"] = "1234 ";
DR1 ["svalue"] = "jksdhfjk ";
Dt1.rows. Add (DR1 );
}
//////////////////////////////////////// /////////////////////////////
int icount = Ds. tables [0]. rows. count;
DS. tables [0]. columns. add (New datacolumn ("Number", typeof (string);
for (INT I = 0; I {< br> DS. tables [0]. rows [I] ["Number"] = I + 1;
}
This. drpdel. datasource = Ds;
This. drpdel. datatextfield = Ds. Tables [0]. Columns ["Number"]. tostring ();
This. drpdel. datavaluefield = Ds. Tables [0]. Columns ["rc_id"]. tostring ();
This. drpdel. databind ();
Add a column and assign a value to each row in the column.