Welcome to the Xceed Community | Help
Community Search  
More Search Options

Select which columns to auto create

Sort Posts: Previous Next
  •  06-23-2009, 4:59 AM Post no. 21911

    Select which columns to auto create

    Hi,

    Is it possible to control which Dependency Property of the ItemsSource to auto create using "AutoCreateColumns"?

     

    Regards,
    Fred 

  •  06-23-2009, 8:14 AM Post no. 21919 in reply to 21911

    Re: Select which columns to auto create

    The AutoCreateColumns property determines if all or none of the columns are automatically created. If you want only some columns in the grid, then you have 3 options:

    1- Set AutoCreateColumns to false and manually define the columns you want by adding them to the grid's Columns collection.

    2- Leave AutoCreateColumns to its default value (true) and hide the columns you do not want by setting their Visible property to false.

    3- Leave AutoCreateColumns to its default value and set the AutoCreateItemProperties property defined on the DataGridCollectionViewSource to false. The next step is to define the item properties, which each correspond to a column in the grid, by adding them to the DataGridCollectionViewSource's ItemProperties collection.


    Senior Technical Writer
    - Xceed Software

    In three words I can sum up everything I've learned about life: it goes on.
  •  06-23-2009, 10:18 AM Post no. 21926 in reply to 21919

    Re: Select which columns to auto create

    Thank Jenny, 2)  is a good suggestion, it is effectively removing some unwanted columns :) Thanks! 
  •  12-07-2009, 1:40 PM Post no. 25098 in reply to 21926

    Re: Select which columns to auto create

    Anybody know how to bind each column of datatable to each column of exceed grid? I know that in normal grid view we assign column using following syntax            
               
    dGridCSVdata.ColumnsIdea.DataPropertyName='tablecolumnname'

    But i am not getting syntax for exceed grid. 

     

    Please help me... 

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