hi,
I have a XAMdatagrid which has products (Observable collection)bound to it.
I have a checkbox .when this checked need to hide the products(rows) which has "inactive" status.
If i uncheck display the inactive products again.
Plaese suggest how to achieve this.
Thanks & Regards
SNA
The Record has a Visibility property, that you can use to hide it. Like this:
DataRecord dr = ... ;
if((int)dr.Cells[0].Value == 0)
dr.Visibility = Visibility.Collapsed;
I am using NetAdvantage for WPF 2008 Vol. 2.
Right now i cant upgrade.
Please suggest if any other solutions is possible?
Thanks
Hi Alex,
Thanks for the quick reply.
Will you please tell me ,where exactly i can find this example.
Or will you paste a code snippet so that i can search.
Hello,
The .NET Advantage for WPF v9.1 XamDataGrid has a Record Filtering feature that you can use to filter the records. What you need to do is create and add/remove a Record Filter to the XamDataGrid.
Examples for that, you can see in the XamFeatureBrowser, which is installed with our product.