populate a datatable or dataset...set the datasource of that gridview to the table or dataset.....
Code: ( css )
1.GridView1.Dat aSource = dt;
2.GridView1.Dat aBind();
or,
Code: ( css )
1.GridView1.Dat aSource = DataSet1.Tables (dt);
2.GridView1.Dat aBind();*/
Thank u so much...
But....
I already tried using this.but it doesn't work "DataGridVi ew" control for Windows App doesn't have the "DataBind" method.And I also think that GridView control cannot be used for Windows appln,it is for web applns.
Code: ( css )
1.GridView1.Dat aSource = dt;
2.GridView1.Dat aBind();
or,
Code: ( css )
1.GridView1.Dat aSource = DataSet1.Tables (dt);
2.GridView1.Dat aBind();*/
Thank u so much...
But....
I already tried using this.but it doesn't work "DataGridVi ew" control for Windows App doesn't have the "DataBind" method.And I also think that GridView control cannot be used for Windows appln,it is for web applns.
Comment