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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -