Dataset DS = new dataset ();
Datatable dt = new datatable ("orderlist ");
DT. Columns. Add (New datacolumn ("ID", typeof (string )));
DT. Columns. Add (New datacolumn ("flmc", typeof (string )));
DT. Columns. Add (New datacolumn ("tjsj", typeof (string )));
DS. Tables. Add (DT );
Datarow DR = Ds. Tables [0]. newrow ();
Dr [0] = 1;
Dr [1] = "cost index analysis table of construction and installation projects ";
Dr [2] = "";
DS. Tables [0]. Rows. Add (DR );
Dr = Ds. Tables [0]. newrow ();
Dr [0] = 2;
Dr [1] = "analysis table of main material indexes of the Building Installation (decoration) project ";
Dr [2] = "";
DS. Tables [0]. Rows. Add (DR );
Dr = Ds. Tables [0]. newrow ();
Dr [0] = 3;
Dr [1] = "Human Machine analysis table ";
Dr [2] = "";
DS. Tables [0]. Rows. Add (DR );
Datagrid1.datasource = Ds. Tables [0]. defaultview;
Datagrid1.databind ();
Dataset datatable operation