Thanks Scott,

 

I'll give it a try and let you know how I go.

 

 

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
<http://www.prism-solutions.com.au/> 

 

prism-v5.jpg 

People.  Responsive.  Innovative.  Simple.  Methodical.

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Scott Barnes
Sent: Friday, 17 June 2011 1:46 PM
To: ozDotNet
Subject: Re: Datagrids in C# on Compact Framework

 

 
foreach(DataGridColumn col in MyGrid.Columns)
{
 if (col.HeaderText == "TheOneWhomShouldBeIgnored")
 col.Visible = false;
}
 
 
 
Ahhh...Compact Framework..how you mock us all with your "maturity" ;)
hehehe.
 
 

---
Regards,
Scott Barnes
http://www.riagenic.com



On Fri, Jun 17, 2011 at 1:31 PM, Simon Kuldin
<[email protected]> wrote:

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 <tel:%2B61%203%209596%208633>  M: 0408 310 957 W:
www.prism-solutions.com.au <http://www.prism-solutions.com.au/> 

 

prism-v5.jpg 

People.  Responsive.  Innovative.  Simple.  Methodical.

 

 

<<image001.jpg>>

Reply via email to