| | |
| | | { |
| | | 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; |
| | |
| | | column.MaxWidth = 0; |
| | | } |
| | | gridView1.OptionsView.ColumnAutoWidth = false;//自动调整列宽 |
| | | gridView1.OptionsFilter.AllowFilterEditor = false; |
| | | gridView1.OptionsFilter.AllowFilterEditor = true; |
| | | gridView1.OptionsFilter.ShowCustomFunctions = DevExpress.Utils.DefaultBoolean.False; |
| | | gridView1.OptionsCustomization.AllowFilter = false; |
| | | gridView1.OptionsCustomization.AllowFilter = true; |
| | | gridView1.OptionsFind.ShowSearchNavButtons = false; |
| | | gridView1.OptionsView.ShowAutoFilterRow = false; |
| | | gridView1.OptionsView.ShowAutoFilterRow = true; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | gridView1.IndicatorWidth = 60; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |