DataGridView Flaf (Create columns)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
VS 2005:
C#:

I have a DataGridView controls that I bind to a dataset.table[0] froma web
service.
..
At design time I add my columns via the collection within the grid control.

However, when I run the application it loads the data in new columns that it
created and not the columns i created.

In VS 2003 there was a flag you could set telling the grid NOT to create it
own columns. I can't find that flag here in 2005.

anyone?

BrianDH
 
Hi BrandDH

Is this what you are looking for
dataGridView:AutoGenerateColumns = false;
Regards
Mark
 
Yes it is,

mark carew said:
Hi BrandDH

Is this what you are looking for
dataGridView:AutoGenerateColumns = false;
Regards
Mark

Hi
VS 2005:
C#:

I have a DataGridView controls that I bind to a dataset.table[0] froma web
service.
.
At design time I add my columns via the collection within the grid control.

However, when I run the application it loads the data in new columns that it
created and not the columns i created.

In VS 2003 there was a flag you could set telling the grid NOT to create it
own columns. I can't find that flag here in 2005.

anyone?

BrianDH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top