Sorry my branin-snap-bad... Compact frameworks don't support the specific
code. But i think its something along those lines where you have to iterate
over the Column collection (wherever that's hidden) and flip it from true to
false).


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


On Fri, Jun 17, 2011 at 1:52 PM, Simon Kuldin <sim...@prism-solutions.com.au
> wrote:

>  Well it does not seem to have either a DataGridColumn type, nor is there
> a Columns collection in the Datagrid.
>
>
>
>
>
> *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
>
>
>
> [image: prism-v5.jpg]
>
> *People.  Responsive.  Innovative.  Simple.  Methodical.*
>
>
>
> *From:* ozdotnet-boun...@ozdotnet.com [mailto:
> ozdotnet-boun...@ozdotnet.com] *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 <
> sim...@prism-solutions.com.au> 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 *M:* 0408 310 957 *W:* www.prism-solutions.com.au
>
>
>
> [image: prism-v5.jpg]
>
> *People.  Responsive.  Innovative.  Simple.  Methodical.*
>
>
>
>
>

<<image001.jpg>>

Reply via email to