| | |
| | | { |
| | | gv.ClearSorting(); |
| | | gv.OptionsCustomization.AllowSort = isEdt; |
| | | |
| | | gv.OptionsFilter.AllowFilterEditor = isEdt; |
| | | gv.OptionsCustomization.AllowFilter = isEdt; |
| | | gv.OptionsView.ShowAutoFilterRow = isEdt; |
| | | |
| | | |
| | | foreach (GridColumn colmn in gv.Columns) |
| | | { |
| | | colmn.OptionsColumn.AllowEdit = true; |
| | |
| | | colmn.OptionsColumn.ReadOnly = false; |
| | | } |
| | | ; |
| | | if (colmn.Name.ToString().Contains("gvMxDel") || colmn.Name.ToString().Contains("gvMxTui")) |
| | | if (colmn.Name.ToString().Contains("gvMxDel") |
| | | || colmn.Name.ToString().Contains("gvMxTui")) |
| | | { |
| | | colmn.Visible = !isEdt; |
| | | if (colmn.Visible == true) |
| | |
| | | { |
| | | gv.ClearSorting(); |
| | | gv.OptionsCustomization.AllowSort = isEdt; |
| | | gv.OptionsFilter.AllowFilterEditor = isEdt; |
| | | gv.OptionsCustomization.AllowFilter = isEdt; |
| | | gv.OptionsView.ShowAutoFilterRow = isEdt; |
| | | foreach (GridColumn colmn in gv.Columns) |
| | | { |
| | | colmn.OptionsColumn.AllowEdit = true; |
| | |
| | | { |
| | | gv.ClearSorting(); |
| | | gv.OptionsCustomization.AllowSort = isEdt; |
| | | |
| | | gv.OptionsFilter.AllowFilterEditor = isEdt; |
| | | gv.OptionsCustomization.AllowFilter = isEdt; |
| | | gv.OptionsView.ShowAutoFilterRow = isEdt; |
| | | |
| | | |
| | | foreach (GridColumn colmn in gv.Columns) |
| | | { |
| | | colmn.OptionsColumn.AllowEdit = true; |
| | |
| | | ToolBox.MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | |
| | | |