471,605 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

DataGridView Flaf (Create columns)

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
Feb 9 '06 #1
2 1421

Hi BrandDH

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

On Thu, 9 Feb 2006 13:31:27 -0800, BrianDH wrote:
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

Feb 9 '06 #2
Yes it is,

"mark carew" wrote:

Hi BrandDH

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

On Thu, 9 Feb 2006 13:31:27 -0800, BrianDH wrote:
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

Feb 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mark carew | last post: by
3 posts views Thread by Art | last post: by
1 post views Thread by DBC User | last post: by
7 posts views Thread by Mitchell S. Honnert | last post: by
7 posts views Thread by =?Utf-8?B?TG9zdEluTUQ=?= | last post: by
6 posts views Thread by Miro | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.