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.

why is there both GridDataVisibleColumns and GridDataControl.VisibleColumns?

Thread ID:





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

Of these two, one works for GridData column definitions


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

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

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:GridDataVisibleColumn MappingName="EmployeeId" HeaderText="EmployeeId"/>

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



Please let us know if you have any queries.




Richard Kubina
Replied On May 8, 2012 09:59 AM

Thanks, is there any use for it at all?

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

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.





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.

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.