public void initView() { if (null == gridView) { Debug.Assert(false); } // style - common KnDevexpressFunc.gridviewSetCommonStyle(gridControl, this.Font); // Row에 색이 있기 때문에 인디케이터 등 제거함 - 포커싱된 Row 테두리는 gridView_CustomDrawCell 에서 처리 gridView.OptionsSelection.EnableAppearanceHideSelection = true; gridView.OptionsSelection.EnableAppearanceFocusedCell = false; gridView.OptionsSelection.EnableAppearanceFocusedRow = false; // 설정 시 포커싱한 Row 전체가 색이 바뀐다. gridView.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.None; gridView.OptionsView.ShowIndicator = false; // load saved setting if (null != gridView) { // clear columns KnDevexpressFunc.gridviewColumnClearAll(gridView); // set columns KnDevexpressFunc.gridviewColumnAdd(gridView, "순번", "display_index", 45, true, DevExpress.Utils.HorzAlignment.Far); KnDevexpressFunc.gridviewColumnAdd(gridView, "주문일시", "call_datetime", 90, true, DevExpress.Utils.HorzAlignment.Center); KnDevexpressFunc.gridviewColumnAdd(gridView, "연동타입", "order_type", 90, true, DevExpress.Utils.HorzAlignment.Center); KnDevexpressFunc.gridviewColumnAdd(gridView, "주문번호", "order_num", 120, true, DevExpress.Utils.HorzAlignment.Center); KnDevexpressFunc.gridviewColumnAdd(gridView, "상태", "state_cd", 95, true, DevExpress.Utils.HorzAlignment.Center); KnDevexpressFunc.gridviewColumnAdd(gridView, "고객번호", "call_num", 110, true, DevExpress.Utils.HorzAlignment.Center); KnDevexpressFunc.gridviewColumnAdd(gridView, "결제방법", "customer_pay_type_cd", 70, true, DevExpress.Utils.HorzAlignment.Center); KnDevexpressFunc.gridviewColumnAdd(gridView, "주문금액", "customer_cost", 70, true, DevExpress.Utils.HorzAlignment.Far); KnDevexpressFunc.gridviewColumnAdd(gridView, "요청메모", "customer_request_memo", 100, true, DevExpress.Utils.HorzAlignment.Near); KnDevexpressFunc.gridviewColumnAdd(gridView, "배달주소", "arv_locate_address", 270, true, DevExpress.Utils.HorzAlignment.Near); KnDevexpressFunc.gridviewColumnAdd(gridView, "배달주소", "arv_locate_alternative_address", 270, true, DevExpress.Utils.HorzAlignment.Near); KnDevexpressFunc.gridviewColumnAdd(gridView, "기타메모", "arv_locate_memo", 200, true, DevExpress.Utils.HorzAlignment.Near); KnDevexpressFunc.gridviewLayoutRestoreFromXml(gridView, GRID_VIEW_LAYOUT_FILE); //// basic sorting //gridView.ClearSorting(); //if (null != gridView.Columns["call_datetime"]) //{ // gridView.Columns["call_datetime"].SortOrder = DevExpress.Data.ColumnSortOrder.Descending; //} // clear Filter clearFilterState(); clearFilterControl(); } }