c# - How to specify each DataTable in each Row in Datagridview -


dt0

dt1 | dt1

dt2 | dt2|  dt3| 

i want them arranged this.all different datatable.specifying each row values. how can achieve this.

assuming have dataset readily available can do

   // set grid's data source    datagridview1.datasource = ds.tables[0]; 

if have multiple datasets, have merge data grid's datasource before setting it

dataset ds1 = new dataset(); dataset ds2 = new dataset();  //fill these datasets , merge  ds1.merge(ds2); 

follow this link further information on it...


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -