private void dataGrid2_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
DataRowView mys = (DataRowView)dataGrid2.SelectedItem;
string BiminfoGuid = mys.Row[3].ToString();
string EffectType = mys.Row[11].ToString();
//注:下标是根据数据源中的列从0开始排的,跟界面绑定的列顺序无关。
Location lt = new Location();
lt.PositionAlarmInformation(BiminfoGuid, EffectType);
}
datagrid 选中行事件 SelectionChanged="dataGrid2_SelectionChanged"
最新推荐文章于 2024-07-29 14:56:30 发布