How to find a specific value in a list box or a table to which it is attached? There is, for example, a table

поля фио <...ещё что-то...> 

And I'm interested in the number, for example, Vasya Pitersky - how can I get his number and select it in the list box?

    1 answer 1

     foreach (ListBoxItem item in <Ваш ListBox>) { if (item.<нужное_поле>.Equals(<ключ_поиска>) { item.selected = true; break; } } 

    I don’t remember exactly the syntax of ListBox, but you need something like that.