This is a migrated thread and some comments may be shown as answers.

Problem with radgridview, filters and itemsource using C#

2 Answers 147 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Yannick Lurot
Top achievements
Rank 1
Yannick Lurot asked on 29 Jul 2009, 03:05 PM
Hello,

here is my problem. I created a RadGriewView in my form and I have to use my own filters with it, so I use the following method:

        private void majradgridviewglobale()
        {
            if (this.filtresactifs.Count.Equals(0))
            {
                this.radGridView1.ItemsSource = TableResult;
            }
            else
            {
                DataTable tablevide = new DataTable();
                foreach (DataTable table in this.filtresactifs)
                {
                    tablevide.Merge(table);
                }
                this.radGridView1.ItemsSource = tablevide;
            }
        }

where filtresactifs is a datatablecollection and tableresult the datatable filled with the "unfiltered" data.

What happens is when I use the GridView filters (the checkboxes to select rows), then my own filter methods, everything works fine. When I uncheck the filters (the ones from the gridview) to cancel the gridview filter, my data is stuck to what it was when the filters from the grid view where active (even when nothing is checked!).

I did try to debug it and it seems that the DataTable given to radGridView1.ItemsSource are correct so I'm afraid I don't have much clue about this.

Can you give me a hint about this? Thanks.

PS: Excuse if my English is not that good, but I'm not a native speaker so I'm doing my best.

PS2: It looks like only the checkboxes are a problem, when I use the option "filters", looks like it works.

2 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 30 Jul 2009, 09:00 AM
Hello Yannick Lurot,

Can you please send me your project (you will need to open a separate supports ticket) along with the exact steps to reproduce this behavior? This will enable me to debug it, see what is going on, and hopefully find a solution for the problem. Thanks in advance.

Greetings,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Yannick Lurot
Top achievements
Rank 1
answered on 31 Jul 2009, 09:56 AM
Post deleted by its author.
Tags
GridView
Asked by
Yannick Lurot
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Yannick Lurot
Top achievements
Rank 1
Share this question
or