| | |
| | | { |
| | | xtraTabControl1.SelectedPageChanged += (s, e) => |
| | | { |
| | | int _handle = gridView1.FocusedRowHandle; |
| | | //如何切换到1的时候,先判断空白行 |
| | | if (_handle < 0) |
| | | { |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | { |
| | | int _handle = gridView1.FocusedRowHandle; |
| | | bool _bl = xtraTabControl1.TabPages[0].PageEnabled; |
| | | if (_bl == false) { return; }; |
| | | if (_handle < 0 ) |
| | | { |
| | | xtraTabControl1.SelectedTabPageIndex = -1; |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("请选择你要显示的行!" + _handle.ToString() + "tag" + xtraTabControl1.SelectedTabPageIndex.ToString()); |
| | | return; |
| | | } |
| | | } |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | { |
| | | _handle = gridView1.FocusedRowHandle; |
| | | if (_handle < 0) |
| | | { |
| | | xtraTabControl1.SelectedTabPageIndex = -1; |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("请选择你要显示的行!" + _handle.ToString()); |
| | | return; |
| | | } |
| | | DataRow row = gridView1.GetDataRow(_handle); |