반응형
//ultragrid property uGrid.DataSource = _dsData; uGrid.DataMember = dtFtp.TableName; //update mode (cell change, row change, update 등등) uGridServer.UpdateMode = UpdateMode.OnCellChangeOrLostFocus; uGrid.DisplayLayout.GroupByBox.Hidden = true; //false; uGrid.DisplayLayout.GroupByBox.Prompt = "GroupBy"; uGrid.DisplayLayout.AutoFitStyle = Infragistics.Win.UltraWinGrid.AutoFitStyle.ExtendLastColumn; //행추가,삭제, 업데이트 허용 uGrid.DisplayLayout.Override.AllowAddNew = AllowAddNew.No; uGrid.DisplayLayout.Override.AllowDelete = DefaultableBoolean.False; uGrid.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.False; uGrid.DisplayLayout.Override.HeaderPlacement = HeaderPlacement.FixedOnTop; uGrid.DisplayLayout.Override.MinRowHeight = 12; uGrid.DisplayLayout.Override.DefaultRowHeight = 19; uGrid.DisplayLayout.Override.ActiveRowAppearance.ResetBackColor(); uGrid.DisplayLayout.Override.ActiveRowAppearance.ResetForeColor(); uGrid.DisplayLayout.Override.CellClickAction = CellClickAction.CellSelect; uGrid.DisplayLayout.Override.CellAppearance.TextVAlign = VAlign.Middle; uGrid.DisplayLayout.Override.ActiveCellAppearance.ResetBackColor(); uGrid.DisplayLayout.Override.ActiveCellAppearance.ResetForeColor(); uGrid.DisplayLayout.Override.AllowMultiCellOperations = AllowMultiCellOperation.Copy; uGrid.DisplayLayout.Override.MultiCellSelectionMode = MultiCellSelectionMode.Standard; //SelectType uGrid.DisplayLayout.Override.SelectTypeCell = SelectType.Default; uGrid.DisplayLayout.Override.SelectTypeCol = SelectType.None; uGrid.DisplayLayout.Override.SelectTypeRow = SelectType.Single; //selected Cell BackColor uGrid.DisplayLayout.Override.SelectedCellAppearance.BackColor = Color.FromArgb(98, 159, 245); uGrid.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.FromArgb(216, 237, 245); //Spool band uGrid.DisplayLayout.Bands[0].ColHeadersVisible = true; uGrid.DisplayLayout.Bands[0].ColHeaderLines = 1; uGrid.DisplayLayout.Bands[0].Override.AllowRowFiltering = DefaultableBoolean.True; uGrid.DisplayLayout.Bands[0].Override.FilterUIType = FilterUIType.FilterRow; uGrid.DisplayLayout.Bands[0].Override.FilterOperatorDefaultValue = FilterOperatorDefaultValue.Contains; uGrid.DisplayLayout.Bands[0].Override.FilterOperandStyle = FilterOperandStyle.Combo; //날짜 포맷 cols["DT"].Format = "yyyy-MM-dd HH:mm:ss"; //해당 컬럼 정렬 cols["DT"].SortIndicator = SortIndicator.Descending;
반응형
'Winform' 카테고리의 다른 글
Infragistics Grid에 체크 박스 넣기 (0) | 2016.01.04 |
---|---|
Infragistics Grid event (0) | 2015.12.30 |
Infragistics UltragridSummaries (0) | 2015.12.29 |
Infragistics.Win.UltraWinEditors.UltraTextEditor (0) | 2015.11.24 |
Infragistics.Win.UltraWinEditors.UltraComboEditor (0) | 2015.11.23 |
댓글