.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

WPF DataGrid (toolkit version) grouping and applying filter

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :WPF
I have a DataGrid that uses grouping.  There are 2 group levels.  The problem I am facing is when a filter is added to the DataGrid, the expanded groups are no longer expanded.  Everything collapses.  This is not desirable.  Does anyone know of a solution?  Thanks.

View Complete Post

More Related Resource Links

Building a grouping Grid with GridView and ASP.NET AJAX toolkit CollapsiblePanel

I've posted an update to this post to apply on demand loading of Details data using ASP.NET AJAX PageMethods. I'm demonstrating the usage if CollapsiblePanelExtender client events on the new post. Check it out.

I admit, Matt Berseth is really inspiring me! Few days ago I pass through 2 of his great posts:

.Surrounding your Data Table and Dialog Controls with ComponentArt Styled Panels
.Building a Grouping Grid with the ASP.NET 3.5 LinqDataSource and ListView Controls
The first one is pure design tips one which I used for making good presentation of my demo here. The 2nd post is actually the idea.

Using the WPF Toolkit DataGrid

WPF comes with a large number of built in controls, but from the beginning it has lacked something that many application developers find extremely important - a DataGrid. You can use the ListView to create something approximating a DataGrid

AJAX Toolkit version 1.0.20229 download link

Hi,Because I have VS 2005, I need to download and install AJAX Toolkit version 1.0.20229, but I an't find it anywhere.  Does anyone have a link I could use for this download?Thanks,Mike

Styling WPF toolkit datagrid - HELP.

I hope to find an answer on customizing Datagrid from WPF toolkit 2010. I'd like to add a TITLE area to be above DataGridColumnHeaderPresenter of the datagrid. The problem is that I want it to be as a user control or data template where I can populate the title from XML. I want to have unique titles for multiple datagrids on one page getting data from one XML.  I populate few datagrids in the same window. What will be the best solution to add customizable Tile area for a content populated from XML and bounded to each  datagrid to avoid dublication? Thank you in advance. I generate datagrid with columns this way: <Custom:DataGrid Grid.Column="0" Grid.Row="1" x:Name="ServerList" ItemsSource="{Binding Source={StaticResource PagesData}, XPath=ListTiles/Tile1}"> <Custom:DataGrid.Columns> <Custom:DataGridTextColumn Header="Name" Binding="{Binding XPath=@Name}" /> <Custom:DataGridTextColumn Header="Status" Binding="{Binding XPath=@Status}" /> <Custom:DataGridTextColumn Header="Events" Binding="{Binding XPath=@Events}" /> <Custom:DataGridTextColumn Header="Services" Binding="{Binding XPath=@Services}" /> </Custom:DataGrid.Columns> </Custom:DataGrid> <Custom:DataGrid x:Name="Events" Gri

got error ,while using ajax toolkit with ajax web.extensions version 1.0


hello all,

the reason i posted this question is that i just added ajax toolkit in my visual studio 2005 and i installed  ajax web extension version 1;

downloaded from microsoft website named "ASPAJAXExtSetup" but when i added ajax object in my web form i ve gotten this error:

"Error 1: Indirect reference is being made to assembly System.Web.Extensions version, which contains 'AjaxControlToolkit.CalendarExtender'. This Project references a prior version of System.Web.Extensions version 1.0.61025.0. To use 'AjaxControlToolkit.CalendarExtender', you must replace the reference to System.Web.Extensions with version or higher.

 C:\inetpub\wwwroot\AJAXEnabledWebSite1\Default.aspx 1 1 C:\...\AJAXEnabledWebSite1\"

is there any option to upgrade ajax web extension version 1 to upper without installing visual studio 2008 and .net 3.5? or any other solution ?

thank you so much

AJAX Control Toolkit version mismatch


I just downloaded the April 12 release of ajax control toolkit. when I put the modal pop up extender in the page, I was getting ajax script 4.0 required errors. it turns out that I had different version.

How do I know which version is compatible. I had built the application in VS 2008 3.5 framework. The recommended download version was 3.5 zip file on codeplex.



Key-Navigation with Wpf Toolkit DataGrid


Hello everybody

I d'like to navigate in the wpf datagrid with keys. That means, if i press B, it should navigate to the first entry, which contains a B in the first column (or better in the column, that is first sorted by). And if I type an I afterwards, it should navigate to the first entry containing BI and so on..
I don't think that the DataGrid gives an implemented solution...?
Does anyone has an idea?

Thanks for your help!

Report Builder 3.0 - Map point layer is not applying filter on a dataset



I have a Report Builder 3.0 report which includes a Map object and a shared dataset (SQL against a SQL 2008 R2 database).

The Map contains a point layer which is populated by a Shared dataset in my report.  I've added some filters to this dataset (on text fields) but the Map continues to show all records and doesn't apply the filter.

I've tried the following but none work:

- Converting the Shared dataset to an embedded dataset

- Only filtering one column

- Combination of setting filters from hardcoded values and parameterised values

The Map never picks up the filter.  If I display the records from the shared dataset on a table then the filter is applied to the tabular results so I know the filter is being applied in at least one place.

I do have a workaround which is to add parameters to the SQL in the shared dataset.  Then pass parameters from my Map report to the shared dataset.  This guarantees that the parameters will be applied.  However, I would still like our users to be able to use filters for the Map.





Applying a condition (filter) on addcalculatedmember


I have a MDX query as given below


SET [A] AS {Descendants([Product].[Product Categories].[Subcategory].members,[Product].[Product Categories].[Subcategory],LEAVES),addcalculatedmembers([Product].[Product Categories].[Category].&[4])}


 {[Measures].[Sales Amount],[Measures].[Extended Amount]} ON COLUMNS, 


FROM [Adventure Works]

My requirement is to apply a condition using another dimension on the value returned by addculatedmembers. for instance i want [category].&[4] sales done only within a date-range or only to a specific customer. but this condition should not be applied to other sub category values. How can I achive this? Any help is greatly appreicated.



How to disable WPF Toolkit DataGrid cell RenderTransform on Select



I have customized wpf toolkit datagrid in my project. When selected datagrid cell are RenderTransform.ScaleX and ScaleY transformed. I want to disable this .

Any hint. I couldn't find anything googling.

Thank you in advance.


Best regards, Ana Danilovic

WPF toolkit DataGrid does not show new row with empty collection



I have exactly the same issue present on the post: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/cdc0fb6f-2335-42e2-98d7-4bd73ffffc8c

However, the answer is still unclear to me, confusing. So I would like to clarify what do I have to get the new blank row on the datagrid.

My custom collection is called PieceUIObjects (derived from ObservableCollection) containing PieceUIObject objects.

What do I have to change in my collection in order to properly "inform" the datagrid how my object is so that the new row is added on it when the collection is initialized with no elements?

Kindly Regards,


Software Developer and AI Enthusiast. www.twitter.com/ikondrasovas

Display Total Records After Applying PagedCollectionView Filter

When we used the data grid control to show total number of records which are displayed in the data grid. But if you use or apply Filter to filter the records based on the user input then the number of records displayed in the data grid are changed which need to update as use changed the filter criteria.

Playing with Linq grouping: GroupByMany?

One of its features is grouping. Many people understand grouping like it is defined in Sql. Linq is implementing grouping quite the same way. Let's discover this syntax and how to make consecutive groups easier.

Grouping Gridview with jquery

The requirement of the project is to show a table of data with the riskdetails(just for assumption) which have the corresponing values for every month and people used to compare the values for last months.

How to format and update GridView and DataGrid rows using JQuery

The behavior described in this question is as expected. When you set text of a cell in grid, it directly affects HTML that is going to be rendered. When you set text value of a cell, it means that you are setting innerText of the cell. The column that GridView creates for command fields (Edit, Delete and Select) are a (anchor) or button elements. So you can see what will happen if you set text value in that cell. It will wipe out those link or button controls and replace them with simple text string.

ASP.NET 4.0: WebForm Routing (quick n dirty version)

One of the things we're adding in ASP.NET 4.0 is built-in support for using Routing together with WebForms. Now, I'm totally aware that this is possible to do already and that a number of people have posted ways of doing this with the Web Routing feature which shipped with ASP.NET 3.5 SP1. We're just adding some features to make it easier to do

Use Jquery with repeater, gridview, datagrid

Before we talk about jquery inside any itemtemplate (repeater, gridview, datagrid), we need to understand the basic use of jquery functions
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend