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.
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.