Hello Balaji,
Thank you for your post. I have been looking into it and I can suggest you see this link from our online documentation:
http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/xamDataPresenter_Add_Filter_Conditions.html
where it is explained how to add filters in XAML. Please let me know if you need further clarification on this matter.
Looking forward for your reply.
Hi Stefen,
I have tried to implement this filtering records in Xamdatagrid by giving "AllowRecordFiltering="True" FilterOperandUIType="Combo" "and i have faced issue to get the values in filter where placed the cursor in Xamdatagrid filter in UI. I have attatched my code, please go through the below code(MVVM pattern).
XAML code : Accounts.xaml
<igDP:XamDataGrid Grid.Row="1" x:Name="_XamDataGridAccounts"
DataSource="{Binding AllAccounts,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
GroupByAreaLocation="None" >
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings AutoGenerateFields="False" AllowDelete="True" HighlightAlternateRecords="True" AllowAddNew="False"
AutoArrangeCells="LeftToRight" ResizingMode="Immediate" AddNewRecordLocation="OnTopFixed" SelectionTypeRecord="Single" />
</igDP:XamDataGrid.FieldLayoutSettings>
<igDP:Field Name="AccountNumber" Label="AccountNumber" Row="0" Column="1">
<igDP:Field.Settings>
<igDP:FieldSettings AllowEdit="True" AllowRecordFiltering="True" FilterOperandUIType="Combo" />
</igDP:Field.Settings>
ViewModel Name :AccountsViewModel
public class AccountsViewModel : INotifyPropertyChanged
{
private BindingList<Accounts> _allAccounts;
public AccountsViewModel()
AllAccounts = new BindingList<Accounts>(_Service.GetAccounts(HospitalId).ToList());//getting all accounts from service call from SQL Database
}
public BindingList<Accounts> AllAccounts
get { return _allAccounts; }
set
if (value == null || _allAccounts == value) return;
_allAccounts = value;
base.OnPropertyChanged("AllAccounts");
base.OnPropertyChanged("Accounts");
Model Name: Accounts
public class Accounts: INotifyPropertyChanged
//Accounts Class fields:
string name = string.Empty;
[DataMember]
public string AccountNumber
get { return name; }
name = value;
NotifyPropertyChanged("AccountNumber");
private void NotifyPropertyChanged(String info)
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(info));
public event PropertyChangedEventHandler PropertyChanged;
I have been looking trough the code you have provided, but I am not completely sure what do you mean by "i have faced issue to get the values in filter where placed the cursor in Xamdatagrid filter in UI". Could you please create an isolated sample, where you issue is reproduced and give us more details about the result you want to achieve, so we could be able to investigate this further for you?
This is my xamdatagrid in my application, i can filter data of the First field 'AccountNumber' and i was attached the code for above post. Then how can i filter the data for first column in wpf MVVM pattern or suggest for any sample code in MVVM pattern.
It seems like that the attachment wasn't uploaded. Could you please try to reattach it and also create a sample project where your issue is reproduced, so we could be able to investigate this further for you.
see the attachment
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.