Hi all,
is it possible to add a search field in the XamDataGrid? For example a field above every column in the XamDataGrid, where the user can enter a search string and the items will be filtered.
Thanks
Hi,
Hope this helps for you.
Keep TextBox for Searching a string on Key Up event of Textbox just do this logic it will effect.
{
DataRecord dr = Grid.Records[count] as DataRecord;
String cellvalue=dr.Cells[ColumnIndex].Value.toString();
if(cellvalue.ToUpper().StartsWith(textbox1.Text.ToUpper()))
Grid.Records[count].Visibility = Visibility.Visible;
}
else
Grid.Records[count].Visibility = Visibility.Collapsed;