public override Column GetColumn(PropertyDescriptor prop, int index) { if (prop.Name == "size") { ImageColumn col = new ImageColumn("size", _list.Images[0], 100); return(col); } else if (prop.Name == "like them?") { CheckBoxColumn c = (CheckBoxColumn)base.GetColumn(prop, index); c.Alignment = ColumnAlignment.Center; c.DrawText = false; c.CheckSize = new Size(25, 25); return(c); } else if (prop.Name == "name") { ComboBoxColumn combo = new ComboBoxColumn("name"); return(combo); } else { return(base.GetColumn(prop, index)); } }
private void InitTables() { ColumnModel columnModel = new ColumnModel(); //VillageId TextColumn villId = new TextColumn { Editable = false, Text = "Id", ToolTipText = "Village Id", Width = 40 }; columnModel.Columns.Add(villId); //Village name TextColumn vill = new TextColumn { Editable = false, Text = "Village", ToolTipText = "Village name", Width = 120 }; columnModel.Columns.Add(vill); //Alert type ComboBoxColumn alertType = new ComboBoxColumn { Text = "Alert Type", ToolTipText = "On what type of attack should I alert you?", Width = 80 }; ComboBoxCellEditor typeEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; typeEditor.Items.AddRange(new string[] { "Disabled", "FullAttack", "AnyAttack" }); alertType.Editor = typeEditor; columnModel.Columns.Add(alertType); // Alert only if hero is present in the attack, for spies art users CheckBoxColumn onHero = new CheckBoxColumn { Text = "AlertOnHero", Width = 85, ToolTipText = "Only alert if hero is present in attack. For spies art users. Otherwise ignored" }; columnModel.Columns.Add(onHero); // set the Table's ColumModel and TableModel table1.ColumnModel = columnModel; XpTableGlobal.ColumnModel = columnModel; table1.TableModel = tableModelMain; }
private void DoBinding2() { ImageList ilist = GetImageList(); Table table = this.table; // The Table control on a form - already initialised table.BeginUpdate(); table.SelectionStyle = SelectionStyle.ListView; table.EnableWordWrap = false; // If false, then Cell.WordWrap is ignored table.GridLines = GridLines.None; int h = table.RowHeight; table.DataMember = ""; MyBinder binder = new MyBinder(ilist, this.Font); table.DataSourceColumnBinder = binder; table.DataSource = GetDataSource(); //table.ColumnModel.Columns[0].Width = 60; ////table.ColumnModel.Columns[1].Width = 40; //table.ColumnModel.Columns[2].Width = 120; //table.ColumnModel.Columns[3].Width = 120; //table.ColumnModel.Columns[4].Width = 60; table.ColumnModel.Columns["name"].Width = 60; ComboBoxColumn combo = table.ColumnModel.Columns["name"] as ComboBoxColumn; if (combo != null) { ComboBoxCellEditor editor = new ComboBoxCellEditor(); //editor.SelectedIndexChanged += new EventHandler(editor_SelectedIndexChanged); //editor.EndEdit += new XPTable.Events.CellEditEventHandler(editor_EndEdit); combo.Editor = editor; } //table.ColumnModel.Columns[1].Width = 40; table.ColumnModel.Columns["date"].Width = 120; table.ColumnModel.Columns["colour"].Width = 120; table.ColumnModel.Columns["like them?"].Width = 60; table.BeginEditing += new XPTable.Events.CellEditEventHandler(table_BeginEditing); table.EditingStopped += new XPTable.Events.CellEditEventHandler(table_EditingStopped); this.table.EndUpdate(); this.table.TableModel.RowHeight = 40; }
public DialogSubjectUnit(MainForm form, DataGridViewRow row) { InitializeComponent(); // Add values to variables mainForm = form; currentSemester = mainForm.currentSemester; semesterKey = new SemesterKey(row.Cells["SemesterKey"].Value.ToString()); semesterName = row.Cells["SemesterName"].Value.ToString(); collegeId = (int)row.Cells["CollegeId"].Value; college = row.Cells["CollegeName"].Value.ToString(); courseCode = row.Cells["CourseCode"].Value.ToString(); courseName = row.Cells["CourseName"].Value.ToString(); // Create DataGridView comboBoxColumn = columnProperties.subject; comboBoxColumn.ComboData = new MainDAL().ViewSubjectAssignments(semesterKey.Key, collegeId, courseCode, 0, ""); subjectUnitView = new BuildView() { GridView = DGV_DialogSubjectUnit, TabledData = cmd.SpecialSubjectUnit(semesterKey.Key, collegeId, courseCode), DataGridViewColumns = new DataGridViewColumn[] { columnProperties.unitCode, columnProperties.unitDescription, columnProperties.subjectId_Hidden, columnProperties.subjectName_Hidden, columnProperties.core, columnProperties.select_CheckBox }, ComboBoxColumns = new ComboBoxColumn[] { comboBoxColumn }, EditMode = DataGridViewEditMode.EditOnEnter }; comboBoxColumn.Create(); // Column must be added to grid on 'data binding complete' subjectUnitView.Create(); // Sundry functions GetLoadedUnits(); SelectCore(); LBL_DialogSubjectUnit_Course.Text = courseCode + " - " + courseName; LBL_DialogSubjectUnit_College.Text = college; LBL_DialogSubjectUnit_Semester.Text = semesterName; }
public DialogCourseSubject(MainForm form, DataGridViewRow row) { InitializeComponent(); // Add values to variables mainForm = form; currentSemester = mainForm.currentSemester; semesterKey = new SemesterKey((int)row.Cells["SemesterKey"].Value); semesterName = row.Cells["SemesterName"].Value.ToString(); collegeId = (int)row.Cells["CollegeId"].Value; college = row.Cells["CollegeName"].Value.ToString(); courseCode = row.Cells["CourseCode"].Value.ToString(); courseName = row.Cells["CourseName"].Value.ToString(); // Create DataGridView comboBoxColumn = columnProperties.teacher; courseSubjectView = new BuildView() { GridView = DGV_DialogCourseSubject, TabledData = cmd.SpecialCourseSubject(semesterKey.Key, collegeId, courseCode), DataGridViewColumns = new DataGridViewColumn[] { columnProperties.semesterKey, columnProperties.collegeId_Hidden, columnProperties.courseCode_Hidden, columnProperties.subjectId_Hidden, columnProperties.subjectName, columnProperties.teacherFullName_Hidden, columnProperties.teacherEmail_Hidden, columnProperties.select_CheckBox }, ComboBoxColumns = new ComboBoxColumn[] { comboBoxColumn }, EditMode = DataGridViewEditMode.EditOnEnter }; comboBoxColumn.Create(); // Column must be added on 'data binding complete' courseSubjectView.Create(); // Sundry functions GetLoadedSubjects(); LBL_DialogCourseSubject_Course.Text = courseCode + " - " + courseName; LBL_DialogCourseSubject_College.Text = college; LBL_DialogCourseSubject_Semester.Text = semesterName; }
public void InitializeTable(string[] patterns, string[] categories) { this._templateTable.ColumnModel = new ColumnModel(); this._templateTable.TableModel = new TableModel(); // 0: Name ComboBoxColumn patternCol = new ComboBoxColumn("Pattern"); ComboBoxCellEditor patternEditor = new ComboBoxCellEditor(); patternEditor.TextChanged += new EventHandler(patternEditor_TextChanged); patternEditor.DropDownStyle = DropDownStyle.DropDown; // patternEditor.Items.AddRange(patterns); patternEditor.AutCompleteAddItems(patterns, AutoCompleteMode.Suggest); patternCol.Editor = patternEditor; patternCol.Editable = true; this._templateTable.ColumnModel.Columns.Add(patternCol); // 1: Type ComboBoxColumn typeCol = new ComboBoxColumn("Type"); ComboBoxCellEditor typeEditor = new ComboBoxCellEditor(); typeEditor.Items.Add(CategoryItemType.String.ToString()); typeEditor.Items.Add(CategoryItemType.WildCard.ToString()); typeEditor.Items.Add(CategoryItemType.Regex.ToString()); typeCol.Editor = typeEditor; typeCol.Editable = true; this._templateTable.ColumnModel.Columns.Add(typeCol); // 2: Category ComboBoxColumn categoryCol = new ComboBoxColumn("Category"); ComboBoxCellEditor categoryEditor = new ComboBoxCellEditor(); categoryEditor.DropDownStyle = DropDownStyle.DropDown; // categoryEditor.Items.AddRange(categories); categoryEditor.AutCompleteAddItems(categories, AutoCompleteMode.SuggestAppend); categoryCol.Editor = categoryEditor; categoryCol.Editable = true; this._templateTable.ColumnModel.Columns.Add(categoryCol); AdjustColumnWidth(); this._templateTable.BeginEditing += new XPTable.Events.CellEditEventHandler(_templateTable_BeginEditing); this._templateTable.AfterEditing += new XPTable.Events.CellEditEventHandler(_templateTable_AfterEditing); this._templateTable.MouseDown += new System.Windows.Forms.MouseEventHandler(this._templateTable_MouseDown); this._templateTable.AlternatingRowColor = Color.LightBlue; }
public void OnPrinterPropertyChange(SPrinterProperty sp) { spp = sp; this.m_GroupBoxInkStripe.Visible = sp.bSupportWhiteInk; this.m_groupOffset.Visible = sp.bSupportWhiteInkYoffset; bool bsupportwhite = (sp.nWhiteInkNum & 0x0F) > 0; bool bsupportVarnish = (sp.nWhiteInkNum >> 4) > 0; checkBoxWhiteNoPrint.Visible = this.spotColorMaskSetting1.Visible = bsupportwhite; checkBoxVarnishNoPrint.Visible = this.spotColorMaskSetting2.Visible = bsupportVarnish; if (!bsupportwhite && bsupportVarnish) { this.spotColorMaskSetting2.Location = this.spotColorMaskSetting1.Location; } this.spotColorMaskSetting1.OnPrinterPropertyChange(sp); this.spotColorMaskSetting2.OnPrinterPropertyChange(sp); this.spotColorMaskSetting1.Title = ResString.GetResString("EnumLayerType_White"); this.spotColorMaskSetting2.Title = ResString.GetResString("EnumLayerType_Varnish"); grouper3.Visible = false;//白墨不显示反向功能 if (sp.bSupportWhiteInk) { this.table.BeginUpdate(); TextColumn textColumn = new TextColumn(ResString.GetResString("ColorLayer"), table.Width / 2 - 2); textColumn.Editable = false; ComboBoxColumn comboboxColumn = new ComboBoxColumn("Ink Type", table.Width / 2 - 2); this.table.ColumnModel = new ColumnModel(new Column[] { textColumn, comboboxColumn }); ComboBoxCellEditor cbeditor = (ComboBoxCellEditor)this.table.ColumnModel.GetCellEditor(1); cbeditor.Items.Clear(); cbeditor.Items.Add(ResString.GetResString("EnumLayerType_Color")); if (bsupportwhite) { cbeditor.Items.Add(ResString.GetResString("EnumLayerType_White")); } if (bsupportVarnish) { cbeditor.Items.Add(ResString.GetResString("EnumLayerType_Varnish")); } cbeditor.Items.Add(string.Format("{0}2", ResString.GetResString("EnumLayerType_Color"))); this.table.ColumnResizing = false; this.table.EndUpdate(); this.comboBox1.Items.Clear(); for (int i = 0; i < MAXLAYERCOUNT; i++) { this.comboBox1.Items.Add(i + 1); } grouper3.Top = this.m_GroupBoxInkStripe.Bottom + 8; } if (sp.bSupportWhiteInkYoffset) { this.m_groupOffset.Location = this.m_GroupBoxInkStripe.Location; grouper3.Top = this.m_groupOffset.Bottom + 8; } //cbo_MultipleInk.Items.Clear(); //foreach (MultipleInkEnum place in Enum.GetValues(typeof(MultipleInkEnum))) //{ // string cmode = ResString.GetEnumDisplayName(typeof(MultipleInkEnum), place); // cbo_MultipleInk.Items.Add(cmode); //} checkBox14plTo42pl.Visible = SPrinterProperty.IsSurpportVolumeConvert(sp.ePrinterHead); this.isDirty = false; }
private void InitTable() { ColumnModel columnModel = new ColumnModel(); // set the Table's ColumModel and TableModel table1.ColumnModel = columnModel; XpTableGlobal.ColumnModel = columnModel; table1.TableModel = tableModelMain; //VillageId TextColumn villId = new TextColumn { Editable = false, Text = "Id", ToolTipText = "Village Id", Width = 40 }; columnModel.Columns.Add(villId); //Village name TextColumn vill = new TextColumn { Editable = true, Text = "Village", ToolTipText = "Village name", Width = 120 }; columnModel.Columns.Add(vill); //Village barracks trainign ComboBoxColumn barracks = new ComboBoxColumn { Text = "Barracks", ToolTipText = "Troops to train in Barracks", Width = 100 }; ComboBoxCellEditor barracksEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; barracksEditor.Items.AddRange(GetPossibleTroops(Classificator.BuildingEnum.Barracks)); barracks.Editor = barracksEditor; columnModel.Columns.Add(barracks); //great barracks training CheckBoxColumn GB = new CheckBoxColumn { Text = "GB", ToolTipText = "Train troops in Great Barracks", Width = 40 }; columnModel.Columns.Add(GB); //stable ComboBoxColumn stable = new ComboBoxColumn { Text = "Stable", ToolTipText = "Troops to train in Stable", Width = 100 }; ComboBoxCellEditor stableEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; stableEditor.Items.AddRange(GetPossibleTroops(Classificator.BuildingEnum.Stable)); stable.Editor = stableEditor; columnModel.Columns.Add(stable); //great stable CheckBoxColumn GS = new CheckBoxColumn { Text = "GS", ToolTipText = "Train troops in Great Stable", Width = 40 }; columnModel.Columns.Add(GS); //workshop ComboBoxColumn workshop = new ComboBoxColumn { Text = "Workshop", ToolTipText = "Troops to train in Workshop", Width = 100 }; ComboBoxCellEditor workshopEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; workshopEditor.Items.AddRange(GetPossibleTroops(Classificator.BuildingEnum.Workshop)); workshop.Editor = workshopEditor; columnModel.Columns.Add(workshop); // Auto-Improve troops columnModel.Columns.Add(new CheckBoxColumn { Text = "AutoImprove", ToolTipText = "Auto Improve troops in smithy", Width = 100 }); }
public Form_TableDetailDemo() { InitializeComponent(); Table table = this.tableList; //Application.VisualStyleState = System.Windows.Forms.VisualStyles.VisualStyleState.NonClientAreaEnabled; //Application.EnableVisualStyles(); var checkbox_sel = new CheckBoxColumn("选择"); var combobox_search = new ComboBoxColumn("搜索类型"); var text_name = new TextColumn("字段"); //text_name.Alignment = ColumnAlignment.Center; text_name.AutoResizeMode = ColumnAutoResizeMode.Grow; var text_desc = new TextColumn("字段说明"); //text_desc.Editable = true; //text_desc.AutoResizeMode = ColumnAutoResizeMode.Any; var text_Ident = new TextColumn("标识"); var text_type = new TextColumn("类型"); var text_Length = new TextColumn("长度"); var text_allowEmpty = new TextColumn("为空"); var text_addDesc = new TextColumn("添加说明"); var columnModel = new ColumnModel(new Column[] { checkbox_sel, text_name, text_desc, text_Ident, text_type, text_Length, text_allowEmpty, text_addDesc }); Row[] rowList = new Row[8]; for (int i = 0; i < 8; i++) { var r = new Row(); r.Cells.Add(new Cell("", false)); r.Cells.Add(new Cell("dd", new CellStyle() { Alignment = ColumnAlignment.Left })); r.Cells.Add(new Cell("dd")); r.Cells.Add(new Cell("dd")); r.Cells.Add(new Cell("dd")); r.Cells.Add(new Cell("dd")); r.Cells.Add(new Cell("dd")); r.Cells.Add(new Cell("dd")); rowList[i] = r; } table.Font = new Font(tableList.Font.FontFamily, 13f); table.SelectionStyle = SelectionStyle.Grid; table.BeginUpdate(); table.EnableWordWrap = true; // If false, then Cell.WordWrap is ignored table.FamilyRowSelect = true; table.FullRowSelect = true; table.ShowSelectionRectangle = false; table.MultiSelect = true; table.EnableWordWrap = false; table.GridLines = GridLines.Both; //table.GridLinesContrainedToData = true; //this.tableList.BackColor = Color.AliceBlue; //table.SortedColumnBackColor = Color.FromArgb(100, Color.WhiteSmoke); table.FullRowSelect = true; table.HideSelection = false; //table.HeaderRenderer = new FlatHeaderRenderer(); table.ColumnModel = columnModel; //table.HeaderFont = new Font("宋体", 13f); table.TableModel = new TableModel(rowList); table.TableModel.RowHeight = 21; table.HeaderStyle = ColumnHeaderStyle.Nonclickable; table.HeaderAlignWithColumn = true; //this.tableList.GridLineStyle = GridLineStyle.Solid; table.BeginEditing += tableList_BeginEditing; this.tableList.EndUpdate(); }
private void InitTable() { ColumnModel columnModel = new ColumnModel(); // set the Table's ColumModel and TableModel table1.ColumnModel = columnModel; XpTableGlobal.ColumnModel = columnModel; table1.TableModel = tableModelMain; //VillageId TextColumn villId = new TextColumn { Editable = false, Text = "Id", ToolTipText = "Village Id", Width = 40 }; columnModel.Columns.Add(villId); //Village name TextColumn vill = new TextColumn { Editable = true, Text = "Village", ToolTipText = "Village name", Width = 120 }; columnModel.Columns.Add(vill); //Village type ComboBoxColumn typeColumn = new ComboBoxColumn { Text = "Type", ToolTipText = "Type of the village", Width = 70 }; ComboBoxCellEditor typeEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; typeEditor.Items.AddRange(new string[] { "Farm", "Support", "Deff", "Off" }); typeColumn.Editor = typeEditor; columnModel.Columns.Add(typeColumn); //get resources for building CheckBoxColumn GetRes = new CheckBoxColumn { Text = "Get Res", Width = 60, ToolTipText = "Select the supplying village when there are not enough resources" }; columnModel.Columns.Add(GetRes); //get resources for troops columnModel.Columns.Add(new CheckBoxColumn { Text = "Send Res", Width = 75, ToolTipText = "Select where to send resources when too many" }); ComboBoxCellEditor celebrationsEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; celebrationsEditor.Items.AddRange(new string[] { "None", "Small", "Big" }); columnModel.Columns.Add(new ComboBoxColumn { Text = "Celebrations", ToolTipText = "Auto-Start celebrations", Editor = celebrationsEditor, Width = 85 }); columnModel.Columns.Add(new CheckBoxColumn { Text = "AutoExpandStorage", Width = 130, ToolTipText = "Automatically Expand storage when it's full" }); columnModel.Columns.Add(new CheckBoxColumn { Text = "UseHeroRes", Width = 85, ToolTipText = "Use hero resources" }); // Donate resources to ally bonus ComboBoxCellEditor donationEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; donationEditor.Items.AddRange(new string[] { "None", "ExcludeCrop", "OnlyCrop" }); columnModel.Columns.Add(new ComboBoxColumn { Text = "Donate", Width = 70, ToolTipText = "Donate resources to the ally bonuses", Editor = donationEditor }); }
private void InitTable() { ColumnModel columnModel = new ColumnModel(); // set the Table's ColumModel and TableModel table1.ColumnModel = columnModel; XpTableGlobal.ColumnModel = columnModel; table1.TableModel = tableModelMain; //VillageId TextColumn villId = new TextColumn { Editable = false, Text = "Id", ToolTipText = "Village Id", Width = 40 }; columnModel.Columns.Add(villId); //Village name TextColumn vill = new TextColumn { Editable = true, Text = "Village", ToolTipText = "Village name", Width = 120 }; columnModel.Columns.Add(vill); //Village type ComboBoxColumn typeColumn = new ComboBoxColumn { Text = "Type", ToolTipText = "Type of the village", Width = 100 }; ComboBoxCellEditor typeEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; typeEditor.Items.AddRange(new string[] { "Farm", "Support", "Deff", "Off" }); typeColumn.Editor = typeEditor; columnModel.Columns.Add(typeColumn); //Village barracks trainign ComboBoxColumn barracks = new ComboBoxColumn { Text = "Barracks", ToolTipText = "Troops to train in Barracks", Width = 100 }; ComboBoxCellEditor barracksEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; barracksEditor.Items.AddRange(GetPossibleTroops(Classificator.BuildingEnum.Barracks)); barracks.Editor = barracksEditor; columnModel.Columns.Add(barracks); //great barracks training CheckBoxColumn GB = new CheckBoxColumn { Text = "GB", ToolTipText = "Train troops in Great Barracks", Width = 40 }; columnModel.Columns.Add(GB); //stable ComboBoxColumn stable = new ComboBoxColumn { Text = "Stable", ToolTipText = "Troops to train in Stable", Width = 100 }; ComboBoxCellEditor stableEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; stableEditor.Items.AddRange(GetPossibleTroops(Classificator.BuildingEnum.Stable)); stable.Editor = stableEditor; columnModel.Columns.Add(stable); //great stable CheckBoxColumn GS = new CheckBoxColumn { Text = "GS", ToolTipText = "Train troops in Great Stable", Width = 40 }; columnModel.Columns.Add(GS); //workshop ComboBoxColumn workshop = new ComboBoxColumn { Text = "Workshop", ToolTipText = "Troops to train in Workshop", Width = 100 }; ComboBoxCellEditor workshopEditor = new ComboBoxCellEditor { DropDownStyle = DropDownStyle.DropDownList }; workshopEditor.Items.AddRange(GetPossibleTroops(Classificator.BuildingEnum.Workshop)); workshop.Editor = workshopEditor; columnModel.Columns.Add(workshop); //get resources for building CheckBoxColumn GetRes = new CheckBoxColumn { Text = "Get Res", Width = 75, ToolTipText = "Select the supplying village when there are not enough resources" }; columnModel.Columns.Add(GetRes); //get resources for troops CheckBoxColumn SendRes = new CheckBoxColumn { Text = "Send Res", Width = 80, ToolTipText = "Select where to send resources when too many" }; columnModel.Columns.Add(SendRes); }
private void LoadTable() { // get the sample images resource System.Reflection.Assembly myAssembly; myAssembly = this.GetType().Assembly; //ResourceManager myManager = new ResourceManager("MediaPlayerStyle.Images", myAssembly); this.table.BeginUpdate(); TextColumn CustomerIDColumn = new TextColumn(); CustomerIDColumn.Text = "Customer ID"; CustomerIDColumn.ToolTipText = "Customer Contract Number"; CustomerIDColumn.Width = 85; CustomerIDColumn.Editable = false; TextColumn NameColumn = new TextColumn(); NameColumn.Text = "Name"; NameColumn.ToolTipText = "School Name"; NameColumn.Width = 220; NameColumn.Editable = false; TextColumn dateColumn1 = new TextColumn(); dateColumn1.Text = "EndDate"; dateColumn1.ToolTipText = "End Date"; dateColumn1.Width = 100; dateColumn1.Editable = false; TextColumn dateColumn = new TextColumn(); dateColumn.Text = "PickUp Date"; dateColumn.ToolTipText = "PickUpDate"; dateColumn.Width = 100; dateColumn.Editable = false; ComboBoxColumn UserIDColumn = new ComboBoxColumn(); UserIDColumn.Text = "User ID"; UserIDColumn.ToolTipText = "User ID"; UserIDColumn.Width = 100; UserIDColumn.Editable = true; UserIDColumn.Editor = GetActiveUsers(); CheckBoxColumn protectedColumn = new CheckBoxColumn(); protectedColumn.Alignment = XPTable.Models.ColumnAlignment.Center; protectedColumn.DrawText = false; protectedColumn.Text = "Completed"; protectedColumn.ToolTipText = "Completed Call"; protectedColumn.Width = 80; protectedColumn.Editable = false; this.table.ColumnModel = new ColumnModel(new Column[] { CustomerIDColumn, NameColumn, dateColumn1, dateColumn, UserIDColumn, protectedColumn }); this.table.HeaderRenderer = new XPTable.Renderers.GradientHeaderRenderer(); this.table.FullRowSelect = true; this.table.EndUpdate(); }