I use winforms and c#.
How can I filter Binding source or binding list. with a textbox text ? I meam while I am typing in a textbox my grid is filtering with a %Like method not (=,equal)method.
thanks.
I use delegate for this problem. Some code like bellow
_List = _List.FindAll(
delegate(MyEntity entity)
{
return entity.Title.Contains(TXT_Title.Text);
}
);
Gview.DataSource = _List ;
You may want to use CollectionViewSource class to enable filtering.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.