【发布时间】:2016-01-28 11:51:15
【问题描述】:
当用户为另一行选择某些内容时,我想隐藏 DataGrid 的 1 行。
我该怎么做?
private void DataGridCommands_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
for (int i = 0; i < dataGridData.Items.Count; i++)
{
if ((dataGridData.Items[i] as DataForTable).MsgType == _qf.ElementAt(DataGridCommands.SelectedIndex).Mcode)
{
//need to hide 1 row from datagriddata
}
}
}
【问题讨论】: