Hi
In the designer click on the DataGrid and you should see a little arrow that 
you can click on it, this will give you an option the edit the columns. 
Alternatively you can write some code and have it set during run time.

David Loo




From: [email protected]
To: [email protected]
Subject: Datagrids in C# on Compact Framework
Date: Fri, 17 Jun 2011 13:31:01 +1000



















Hey ppl,

 

I’m getting stuck around using a Datagrid in my Compact
Framework C# project.

 

I have:

-         
A Bindingsource that has the Datasource correctly
linked to my class (which is generated from a webservice)

-         
I then have a Datagrid on which I have set its
Datasource to be the Bindingsource

 

Once I do this, I correctly see on the Datagrid all the default
columns for each field in my datasource.

 

The problem is, I DON’T want to see
every single field, I want to remove a few, and change the headings of a few
columns.

 

For the life of me I can’t figure this out.  Even if I
try to make my own tablestyle with a collection of columns, it still uses the
default columns for all fields.

 

Any suggestions?

 

 

Simon Kuldin | Senior Technical Consultant | PRISM


Suite 3, 214 Bay St Brighton, VIC
3186, Australia

P: +61 3 9596 8633 M: 0408 310 957 W: www.prism-solutions.com.au

 

 

People. 
Responsive.  Innovative.  Simple.  Methodical.

 

                                          

Reply via email to