Hello,
I have a Window with a DataGrid showing grouped Data.
I am loading around 4 x 300 items in the WPF DataGrid which are grouped in 4 groups.
Grouping disables Virtualization.
I set IsAsync="True" so my Window opens fast but the DataGrid is just filled AFTER 11 SECONDS ???
What can I do to speed up the loading/display of my data...
I need to take some action (e.g. make some cells readonly based on some other cells) after data biinding is completed. In WinForm DataGridView, I used to do it in DataBindingComplete event. However, I couldn't find such an event in WPF DataGrid. What else can I use?
...
In WinForm DataGridView, it automatically selects the first row when initialized. It drove me crazy when I tried to turn that feature off. Moving to WPF DataGrid, it seems Microsoft has decided to turn this feature off, which is a good thing I think. However, I have hard time to enable this feature now. For some DataGrid, I want the firs...
In WPF datagrid, is is possible to allow the user to cut or delete a column?
If yes, is there any built in support for it?
If no, how do I do it? A sample illustration will be very nice.
...
I have a wpf datagrid where the columns have textbox cell template added. Data is populated from an xml source through a person class.
<Persons>
<Person FirstName="John" LastName="Doe" Age="37", Sex="Male"/>
<Person FirstName="Paul" LastName="Sams" Age="34", Sex="Male"/>
</Persons>
The datagridrow will be the person class ...
Hi All,
Thanks for reading my question!
I have a problem with customizing a DataGrid RowGroupHeader, the situation is:
I need a way of taking control over a DataGrid RowGroupHeader as I want to display some databound values in it. The values will be generated at runtime so the RowGroupHeaderStyle needs to be generated and added to DataGr...
I am unable to compile the following Flex application.
All I am trying to do is, to extend DataGridColumn class.
I get the following compile error :
Could not resolve to a component implementation.
DataGridColumnTest/src DataGridColumnTest.mxml line 6
DataGridColumnTest.mxml :
<?xml version="1.0" encoding="utf-8"?>
<mx:A...
I have a datagrid column whose column values are databinded. I have used DataGridTemplateColumn and i need to use the sorting in this column.
my:DataGridTemplateColumn SortMemberPath="FileName" Header="Name" IsReadOnly="True" MinWidth="150"
It works and sort the the data but when i edit the data after sorting, i need to re-generate the...
Hi,
I have a datagrid in my Flex App, and I;m uisng a custom HeaderRender. This HeaderRender has a checkbox. How can I control the checkbox from outside the HeaderRender?
thanks!
...
It looks WFP DataGridComboBoxColumn is using a single ItemsSource for all cells in this column. I have a case where the ComboBox items are dependent on the other cell in the same row. I managed to populate the ItemsSource in PreparingCellForEdit event. However, it doesn't work as desired. Initially, all cells in this column is empty. Onc...
I have a WPF application with DataGrid
The DataGrid contains 4 columns with a checkbox template column on the first column
the problem is when i check some of the checkbox on the items, the checkbox would got reset when i sort a certain column. For example i check the checkbox on the row 2 it gets unchecked when i sort the datagrid.
be...
I'm not sure if this is just my machine (WinXP SP3), because I have not seen it in other people's screenshots.
It looks to me that the scrollbars in DataGrid only cover the scrollable area. That means, the column and row header areas and the bottom right corner are shown in background color, which looks ugly to me. How can I make the sc...
This might sound like a trivial question, but even here in Stackflow I only have found binding to a simple string collection.
I have a Parent class with two properties Name and Age.
I have a Child class with two properties ChildName and ChildAge.
Within MVVM pattern I am exposing these properties into the ViewModels and additionally I...
Hi.
I would like to populate DataGrid with XML data stored in variable.
Below I have working example of populating DataGrid.
$grid = New-Object System.Windows.Forms.DataGrid
$array = New-Object System.Collections.ArrayList
foreach ($e in $(Get-Process | Select Name,Company)) { $array.Add($e) }
$grid.DataSource = $array
How can I do...
I found some styles for WPF DataGrid online and all of them are for pre-release DataGrid. Now, I'm using .NET4 DataGrid, I got a compile error complaining DataGridHeaderBorder cannot be found. Based on Microsoft, it is in Microsoft.Windows.Themes namespace. No matter what I try, I can't make it work.
...
I'm using a DataGrid in a VS2010 WPF C# project. I have bound the DataGrid to an ObservableCollection. When you click on a column heading it sorts the data at that point in time.
Question - How would I arrange such that the sorting in the DataGrid is dynamic, so that when data changes (within the ObservableCollection) the sorting keep...
Hello Experts
i have A problem i m new in Wpf i m using Wpf Datagrid i hv one CheckBox Column (item template column) inside this. i m able to find its All Event but how can i get it
i want ischeckdproperty true according to my condtion But i m Unable to caught it
my xaml code is below
<my:DataGrid AlternatingRowBackground="LightBlue...
In SL4 DataGrid I have the following multicontrol column:
<sdk:DataGridTemplateColumn Header="Address Line1
Address Line 2" MinWidth="200">
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Path=Address1}"/>
<TextBlock Text="{Binding Path=Address2}"/>
<...
Hi all,
I am searching about how to create variable number of columns in a DataGrid from the Ilist in MVVM way. The requirement I am working on is very big and also the number of rows and columns are not known But I did not find satisfactory answers
Is there some one that had to do the samething ?
If there is no way of generating suc...
Hi!
I have a DataGrid in Flex, with one column a checkbox and another a numeric value. When the checkbox is clicked, the numeric value should change, either to 0 if the checkbox is unselected, or to a pre-defined minimum value if the checkbox is selected. Here is the code I have:
<mx:DataGrid x="0" y="45" width="272" height="525" dataP...