var s = e.OriginalSource as FrameworkElement;
var parentRow = s.ParentOfType<GridViewRow>();
if (parentRow != null)
{
MyDataItem item = (MyDataItem)parentRow.Item;
}
for my WPF application I need a DataGrid which realizes real Data Virtualization and not only UI Virtualization.
For the first time I've read your documentation. For Data Virtualization you are using VirtualQueryableCollectionView.
Look at: http://www.telerik.com/help/wpf/gridview-populating-datavirtualization.html
In my application the data comes from a MS SQL Server Database. What I need is to load only the data
from the database into the memory which are displayed in the DataGrid. If I'm scrolling in the DataGrid
the old data should be removed from the memory. If scrolling will be stopped only the data should be
in the memory which are displayed in the DataGrid.
Is that possible with your Data Virtualization ?
If I'm using your Data Virtualization does your built-in sorting, built-in filtering, built-in grouping
work without any limitations ? For example does your built-in filtering work on the whole data (for example a table
of my database) without loading all the data into the memory ?
Is it possible to edit data in the DataGrid or to add/remove a data row in the DataGrid if I'm using your Data Virtualization
Thank you for your answers.
Best regards,
Florian Schwarz
public class ChartEntity
{
public EntityType Type {get;set;}
public string Value {get;set;}
}
List<
ChartEntity
> list = new ChartEntityList();
list.Add(new ChartEntity { Type = EntityType.TypeA, Value = 25 } );
list.Add(new ChartEntity { Type = EntityType.TypeB, Value = 35 } );
list.Add(new ChartEntity { Type = EntityType.TypeC, Value = 15 } );
list.Add(new ChartEntity { Type = EntityType.TypeA, Value = 9 } );
list.Add(new ChartEntity { Type = EntityType.TypeD, Value = 22 } );
list.Add(new ChartEntity { Type = EntityType.TypeE, Value = 37 } );
list.Add(new ChartEntity { Type = EntityType.TypeB, Value = 19 } );
list.Add(new ChartEntity { Type = EntityType.TypeC, Value = 5 } );
EntityType.TypeA = Yellow
EntityType.TypeB = Green
EntityType.TypeC = Blue
EntityType.TypeD = Red
EntityType.TypeE = Orange
25/167 Yellow, 35/167 Green, 15/167 Blue, 9/167 Yellow, 22/167
Red, 37/167
Orange, 19/167
Green, 5/167
Blue
I dont need any legends, axes, or anything extra, all I need is horizontal bar. Is ChartView the way to go here. or there is a better control for this?
Regards,
Goran