Welcome to the Xceed Community | Help
Community Search  

Easy way to hide first column on detail grid(s)?

Sort Posts: Previous Next
  •  08-28-2008, 8:31 AM Post no. 14600

    Easy way to hide first column on detail grid(s)?

    Namaste!

    Is there an easy way to hide the first column in the detail grids?  Or, does one have to template the structure to do so?

    I have a grid that I'm using a report container.  I load the grid dynamically based on the report chosen.  Some reports have details, some do not.  I'd like to hide the first column in the detail grids as that contains the parent ID (which is fairly useless to the user).

    Thanks!

    Peace, Love, and Light,

    /s/ Jon C. Munson II

    <passes chocolate covered chocolate donuts to the support staff>

  •  08-28-2008, 9:35 AM Post no. 14606 in reply to 14600

    Re: Easy way to hide first column on detail grid(s)?

    You could set the column's Visible property to false Smile

    Thanks for the donuts! Wink 


    Technical Writer - Xceed Software

    In three words I can sum up everything I've learned about life: it goes on.
  •  08-28-2008, 9:42 AM Post no. 14608 in reply to 14606

    Re: Easy way to hide first column on detail grid(s)?

    Aye, I could indeed do that.  In fact, I'm doing that on the parent.  How do I access the children?  I did not see a method by which to access the children.

    Peace, Love, and Light,

    /s/ Jon C. Munson II

  •  08-28-2008, 9:50 AM Post no. 14610 in reply to 14608

    Re: Easy way to hide first column on detail grid(s)?

    You can use DetailConfigurations, which expose a Columns collection like the parent DataGridControl, and can be added to the DataGridControl's DetailConfigurations collection.
    Technical Writer - Xceed Software

    In three words I can sum up everything I've learned about life: it goes on.
  •  08-28-2008, 10:09 AM Post no. 14615 in reply to 14610

    Re: Easy way to hide first column on detail grid(s)?

    For those who'd like to know:

    foreach (DetailConfiguration d in this.DataGridControl.DetailConfigurations)

    {

         d.Columns.Visible = false;

    }

     

    Peace, Love, and Light,

    /s/ Jon C. Munson II

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.