Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to bind dataview to itemssource dependency property of datagrid.
XML
<DataGrid AutoGenerateColumns="True" Grid.Row="1" Name="dataGrid1" VirtualizingStackPanel.VirtualizationMode="Recycling" EnableColumnVirtualization="True" EnableRowVirtualization="True" VirtualizingStackPanel.IsVirtualizing="True"  ItemsSource="{Binding Path=Data}" VerticalScrollBarVisibility="Visible"  HorizontalScrollBarVisibility="Visible"/>

The clr property which i am binding is
C#
public DataView Data
     {
         get
         {
             return data;
         }
         set
         {
             data = value;
             OnPropertyChange("Data");
         }
     }

but i cannot achieve the virtualization using this.I dont know what is the problem
Posted
Comments
Sunasara Imdadhusen 23-May-13 7:14am    
What you are trying to achieve??
Francisco T. Chavez 27-May-13 20:09pm    
When you say virtualization, are you talking about the UI or the data?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900