回复 1楼dafeng520的帖子
dafeng520 你好,
这个问题给出一个 workaround :
- private void Button_Click_1(object sender, RoutedEventArgs e)
- {
- this.c1flexgrid.Rows.RemoveAt(this.c1flexgrid.Rows.Count - 1);
- if (c1flexgrid.Selection.Row > c1flexgrid.Rows.Count - 1)
- {
- c1flexgrid.Select(c1flexgrid.Rows.Count - 1, 0);
- }
- }
复制代码
Demo
|