开发者

Grid data not updating based on text typed in TextBox

I have this lambda expression

Me.Subcripe开发者_如何学CrGrd.ItemsSource = _
   source.Where(Function(p As subscripers) p.Navn Like navn)

where i should filter the grid data based on the typed input in a txtbox

It returns the result when i type the full name but it doesn't filter the data as i type along in the txt field

what am i missing ?

Thanks


Sorry for asking (seems like i must be a jerk according to some of the response)

here is the solution

Me.SubcriperGrd.ItemsSource = source.Where(Function(p As subscripers) p.Navn.StartsWith(navn))

in case someone else might look for a filter solution

and ill not bother the stack overflow forum ever again


You're probably missing responding to the event sent when the text changes TextBox.TextChanged. Handle this event and update the filter each time the text changes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜