We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

why is there both GridDataVisibleColumns and GridDataControl.VisibleColumns?

Thread ID:

Created:

Updated:

Platform:

Replies:

103496 May 7,2012 08:47 PM UTC May 9,2012 04:02 AM UTC WPF 3
loading
Tags: GridControl
Richard Kubina
Asked On May 7, 2012 08:47 PM UTC

Of these two, one works for GridData column definitions

            <syncfusion:GridDataVisibleColumns>
            <syncfusion:GridDataControl.VisibleColumns>

Are they both needed? or is the first one cruft?

Rajasekar [Syncfusion]
Replied On May 8, 2012 05:57 AM UTC

HI Richard,

 

Thanks for your update.

 

1)“<syncfusion:GridDataVisibleColumns>” not needed.

 

2)You can generate visible columns of the GridDataControl by using the below code,

 

    <syncfusion:GridDataControl Grid.Row="1"  Name="dataGrid" ShowAddNewRow="False" AutoPopulateColumns="False" AutoPopulateRelations="False" Margin="3" ItemsSource="{Binding Path=GDCSource}" syncfusion:GridTooltipService.ShowTooltips="True">
       <syncfusion:GridDataControl.VisibleColumns>
                <syncfusion:GridDataVisibleColumn MappingName="EmployeeId" HeaderText="EmployeeId"/>

               <syncfusion:GridDataVisibleColumn MappingName="EmployeeName" HeaderText="EmployeeName"/>

     </syncfusion:GridDataControl.VisibleColumns>
</syncfusion:GridDataControl>

 

Please let us know if you have any queries.

 

Thanks,

Rajasekar


Richard Kubina
Replied On May 8, 2012 01:59 PM UTC

Thanks, is there any use for it at all?

Rajasekar [Syncfusion]
Replied On May 9, 2012 04:02 AM UTC

HI Richard,

 

Thanks for your reply. Since “GridDataVisibleColumns” collection is in the same namespace, so it is displaying but there is no use of it. You have to use only the GridDataControl.VisibleColumns (i.e<syncfusion:GridDataControl.VisibleColumns>).

 

Please let us know if you have any queries.

 

Thanks,

Rajasekar


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;