Hi,
I have a radgridview which has an IQueryable as datasource. When attempting to filter the radgridview using filter descriptors the fiter descriptors are shown on the grid. But the fields are not filtered. I have an idea this has something to do with the binding?
The IQueryable is generated in the DAL and returned to the BL which in turn returns it to the WinForm. There is no way to directly access the database as we can only work on the Winform.
Is it possible to filter the radgridview when it is using an untyped IQueryable as datasource?
I have a radgridview which has an IQueryable as datasource. When attempting to filter the radgridview using filter descriptors the fiter descriptors are shown on the grid. But the fields are not filtered. I have an idea this has something to do with the binding?
The IQueryable is generated in the DAL and returned to the BL which in turn returns it to the WinForm. There is no way to directly access the database as we can only work on the Winform.
Is it possible to filter the radgridview when it is using an untyped IQueryable as datasource?
radGridView1.DataSource = BusinessObject.getAll(); //Returns IQueryable
//Setting filter descriptors
FilterDescriptor filter = new FilterDescriptor();
filter.Operator = FilterOperator.IsEqualTo;
filter.PropertyName = "Username"t;
filter.Value = "Bob";
filter.IsFilterEditor = true;
this.radGridView1.MasterTemplate.EnableCustomFiltering = true;
this.radGridView1.MasterTemplate.EnableFiltering = true;
this.radGridView1.FilterDescriptors.Clear();
this.radGridView1.FilterDescriptors.Add(filter);
radGridView1.ShowFilteringRow = true;