摘要:
获得 ListBox(已绑定数据源) 当前选定行的 Text 或 Value:DataRowView dr = listBoxSource.SelectedItem as DataRowView;dr[listBoxSource.DisplayMember].ToString();//Textdr[listBoxSource.ValueMember].ToString().Trim();... 阅读全文
摘要:
获得 ListBox(已绑定数据源) 当前选定行的 Text 或 Value:DataRowView dr = listBoxSource.SelectedItem as DataRowView;dr[listBoxSource.DisplayMember].ToString();//Textdr[listBoxSource.ValueMember].ToString().Trim();... 阅读全文
|