i wanna search datagrid with more than one parameter at the same time. what i want to achieve is i wanna use radio button to pick paid invoice and unpaid invoice, then when i choose unpaid invoice i can then type the company name on an input box.
So my datagrid will only contain Unpaid Invoice from Company A only.
*this is my method for searching supplier name
public void OnInput(InputEventArgs args)
{
this.DefaultGrid.SearchSettings.Fields = new string[] { "Nama_Supplier" };
this.DefaultGrid.Search(args.Value);
}
*and this is my method when radio button clicked, it will only shown paid or unpaid invoice
public void DariRadioButton(string pilihan)
{
this.DefaultGrid.SearchSettings.Fields = new string[] { "Status_Pembayaran" };
if (pilihan == "Lunas")
{
this.DefaultGrid.Search("Lunas");
}
else
{
this.DefaultGrid.Search("Dibayarkan");
}
}
i want to make those two search parameter co exist.
Can you help me?