Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用数据网格选择组合框中的值:
private void status_SelectionChanged(object sender, SelectionChangedEventArgs e) { }
我怎么知道我选择的行号
What about
datagrid.SelectedIndex
Make sure that SelectionMode = "Single"
SelectionMode = "Single"