G
Guest
Hi folks,
I created a DataGridView control as below:
....
DataGridView grid = new DataGridView();
....
ds = new System.Data.DataSet();
ds.Fill(ds, "dsTable1");
BindingSource bindsrc = new BindingSource();
bindsrc.DataSource = ds;
bindsrc.DataSource = "daTable1";
grid.DataSource = bindsrc;
When I run the application, everything is fine. But no column headers show
up. Please advise. Thanks.
PeterK
I created a DataGridView control as below:
....
DataGridView grid = new DataGridView();
....
ds = new System.Data.DataSet();
ds.Fill(ds, "dsTable1");
BindingSource bindsrc = new BindingSource();
bindsrc.DataSource = ds;
bindsrc.DataSource = "daTable1";
grid.DataSource = bindsrc;
When I run the application, everything is fine. But no column headers show
up. Please advise. Thanks.
PeterK