private void timer_Tick(object sender, EventArgs e) { gridControl1.BeginUpdate(BeginUpdateOptions.Invalidate); for (int rowIndex = 24; rowIndex < 36; rowIndex += 2) { GridStyleInfo style = gridControl1[rowIndex, 2]; GridProgressBarInfo progressBarEx = style.ProgressBar; int pvalue = (progressBarEx.ProgressValue + rowIndex) % 100; progressBarEx.ProgressValue = pvalue; } GridStyleInfo stylev = gridControl1[26, 8]; GridProgressBarInfo progressBarExv = stylev.ProgressBar; int pvaluev = (progressBarExv.ProgressValue + 3) % 100; progressBarExv.ProgressValue = pvaluev; gridControl1.EndUpdate(true); Application.DoEvents(); }
private GridProgressBarInfo SetProgressBar(int row, int col) { GridStyleInfo style1 = this.gridDisplay[row, col]; this.gridDisplay.CoveredRanges.Add(GridRangeInfo.Cells(row, col, row, col + 1)); style1.BorderMargins.Left = 30; style1.BorderMargins.Right = 20; GridProgressBarInfo progressBarEx1 = style1.ProgressBar; progressBarEx1.BeginUpdate(); progressBarEx1.ProgressValue = 0; style1.CellType = "ProgressBar"; style1.Themed = false; //style1.CellAppearance = GridCellAppearance.Raised; progressBarEx1.BackGradientEndColor = System.Drawing.SystemColors.ControlLightLight; progressBarEx1.BackGradientStartColor = System.Drawing.SystemColors.ControlDark; progressBarEx1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.VerticalGradient; progressBarEx1.BackMultipleColors = new System.Drawing.Color[] { System.Drawing.SystemColors.ControlDark, System.Drawing.SystemColors.ControlLightLight, System.Drawing.SystemColors.Control }; progressBarEx1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube; progressBarEx1.SegmentWidth = 10; progressBarEx1.StretchImage = false; progressBarEx1.StretchMultGrad = false; progressBarEx1.TextShadow = false; progressBarEx1.TubeEndColor = System.Drawing.SystemColors.Control; progressBarEx1.TubeStartColor = Color.Blue;//System.Drawing.SystemColors.ControlDark; progressBarEx1.EndUpdate(); return(progressBarEx1); }
private void gridDisplay_PushButtonClick(object sender, GridCellPushButtonClickEventArgs e) { int numTrials = 100; int count10 = 0; int count20 = 0; int count30 = 0; int count40 = 0; int col = 4; int currentAge = int.Parse(this.gridDisplay[7, 2].Text); int retireAge = int.Parse(this.gridDisplay[21, 2].Text); int row = 2 + retireAge - currentAge; double d; string s; this.gridDisplay.ConfirmChanges(); GridProgressBarInfo progressBarEx1 = SetProgressBar(row10 + 4, col - 1); DateTime start = DateTime.Now; this.Cursor = Cursors.WaitCursor; for (int i = 0; i < numTrials; ++i) { this.gridDisplay[e.RowIndex, e.ColIndex].CellValue = 0; s = this.gridCalculations[row + 10, col].FormattedText; if (double.TryParse(s, NumberStyles.Any, null, out d) && d > 0) { count10 += 1; } s = this.gridCalculations[row + 20, col].FormattedText; if (double.TryParse(s, NumberStyles.Any, null, out d) && d > 0) { count20 += 1; } s = this.gridCalculations[row + 30, col].FormattedText; if (double.TryParse(s, NumberStyles.Any, null, out d) && d > 0) { count30 += 1; } s = this.gridCalculations[row + 40, col].FormattedText; if (double.TryParse(s, NumberStyles.Any, null, out d) && d > 0) { count40 += 1; } //System.Threading.Thread.Sleep(0); if (i % 10 == 0) { progressBarEx1.ProgressValue = i; } Application.DoEvents(); } this.Cursor = Cursors.Default; this.gridDisplay[row10, col].Text = string.Format("{0:P2}", ((float)count10) / numTrials); this.gridDisplay[row10 + 1, col].Text = string.Format("{0:P2}", ((float)count20) / numTrials); this.gridDisplay[row10 + 2, col].Text = string.Format("{0:P2}", ((float)count30) / numTrials); this.gridDisplay[row10 + 3, col].Text = string.Format("{0:P2}", ((float)count40) / numTrials); this.gridDisplay[row10 + 4, col - 1].CellType = "Static"; this.gridDisplay[row10 + 4, col - 1].Font.Bold = true; this.gridDisplay[row10 + 4, col - 1].Text = string.Format("{0} runs in {1}", numTrials, DateTime.Now - start); }
private void InitializeGrid() { #region Style prerequistes GridStyleInfo standard = gridControl1.BaseStylesMap["Standard"].StyleInfo; standard.Font.Bold = false; standard.Font.Facename = "Verdana"; //"Verdana"; standard.Font.Size = 10; standard.TextColor = Color.FromArgb(240, 0, 21, 84); gridControl1.Font = new System.Drawing.Font("Verdana", 8.5F); // grab some images... ImageList imageList = new ImageList(); imageList.Images.Add(SystemIcons.Warning.ToBitmap()); imageList.Images.Add(SystemIcons.Application.ToBitmap()); imageList.Images.Add(SystemIcons.Asterisk.ToBitmap()); imageList.Images.Add(SystemIcons.Error.ToBitmap()); imageList.Images.Add(SystemIcons.Exclamation.ToBitmap()); imageList.Images.Add(SystemIcons.Hand.ToBitmap()); imageList.Images.Add(SystemIcons.Information.ToBitmap()); imageList.Images.Add(SystemIcons.Question.ToBitmap()); //standard.ImageList = imageList; Icon icon = new Icon(GetType().Module.Assembly.GetManifestResourceStream("ContentCellDemo.gridform.ico")); imageList.Images.Add(icon.ToBitmap()); icon = new Icon(GetType().Module.Assembly.GetManifestResourceStream("ContentCellDemo.toolsform.ico")); imageList.Images.Add(icon.ToBitmap()); //imageList.Images.Add(Image.FromFile(@"..\..\Resources\Car1.jpg")); //imageList.Images.Add(Image.FromFile(@"..\..\Resources\car2.jpg")); //imageList.Images.Add(Image.FromFile(@"..\..\Resources\camera.ico")); #endregion #region Codes to apply celltypes in Grid this.gridControl1.BeginUpdate(); #region Style declaration GridStyleInfo headerstyle = new GridStyleInfo(); headerstyle.Font.Size = 12; headerstyle.Font.Bold = true; headerstyle.VerticalAlignment = GridVerticalAlignment.Middle; headerstyle.HorizontalAlignment = GridHorizontalAlignment.Center; headerstyle.CellType = GridCellTypeName.Static; GridStyleInfo subheaderstyle = new GridStyleInfo(); subheaderstyle.Font.Bold = true; subheaderstyle.VerticalAlignment = GridVerticalAlignment.Middle; subheaderstyle.HorizontalAlignment = GridHorizontalAlignment.Center; subheaderstyle.CellType = GridCellTypeName.Static; gridControl1.Model.ColWidths[4] = 90; gridControl1.Model.ColWidths[6] = 100; #endregion #region Static Cells gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(1, 1, 2, gridControl1.ColCount)); gridControl1[1, 1] = headerstyle; gridControl1[1, 1].Text = "Static Cells"; int rowIndex = 3, colIndex = 4; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex, gridControl1.ColCount)); gridControl1[rowIndex, 1] = subheaderstyle; gridControl1[rowIndex, 1].Text = "Static Cells - cannot be edited which represented as a read-only cell"; rowIndex++; gridControl1[rowIndex, colIndex].Text = "Static cell"; gridControl1[rowIndex, colIndex].CellType = GridCellTypeName.Static; gridControl1[rowIndex, colIndex + 2].Text = "Static cell"; gridControl1[rowIndex, colIndex + 2].CellType = GridCellTypeName.Static; gridControl1[rowIndex, colIndex + 2].ImageIndex = 8; #endregion #region ImageCells with PictureBox rowIndex = 7; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount)); gridControl1[rowIndex, 1] = headerstyle; gridControl1[rowIndex, 1].Text = "Image Cells"; rowIndex = 10; gridControl1[rowIndex, colIndex].CellType = GridCellTypeName.Image; gridControl1[rowIndex, colIndex].ImageList = imageList; gridControl1[rowIndex, colIndex].ImageIndex = 2; gridControl1[rowIndex, colIndex + 1].CellType = GridCellTypeName.Image; gridControl1[rowIndex, colIndex + 1].ImageList = imageList; gridControl1[rowIndex, colIndex + 1].ImageIndex = 4; //gridControl1[rowIndex, colIndex + 2].CellType = GridCellTypeName.Image; //gridControl1[rowIndex, colIndex + 2].ImageList = imageList; //gridControl1[rowIndex, colIndex + 2].ImageIndex = 8; rowIndex++; rowIndex++; gridControl1[rowIndex, colIndex].CellType = GridCellTypeName.Image; gridControl1[rowIndex, colIndex].ImageList = imageList; gridControl1[rowIndex, colIndex].ImageIndex = 5; gridControl1[rowIndex, colIndex + 1].CellType = GridCellTypeName.Image; gridControl1[rowIndex, colIndex + 1].ImageList = imageList; gridControl1[rowIndex, colIndex + 1].ImageIndex = 7; //gridControl1[rowIndex, colIndex + 2].CellType = GridCellTypeName.Image; //gridControl1[rowIndex, colIndex + 2].ImageList = imageList; //gridControl1[rowIndex, colIndex + 2].ImageIndex = 10; #region ApplyImages // GridStyleInfo style; // style = gridControl1[9, 2]; // style.CellType = "PictureBox"; //#if HELPERCLASS // sp = new Syncfusion.GridHelperClasses.PictureBoxStyleProperties(style); //#else // sp = new PictureBoxStyleProperties(style); //#endif // sp.Image = Image.FromFile(@"..\..\Resources\Car1.jpg"); // sp.SizeMode = PictureBoxSizeMode.StretchImage; // style = gridControl1[9, 6]; // style.CellType = "PictureBox"; //#if HELPERCLASS // sp = new Syncfusion.GridHelperClasses.PictureBoxStyleProperties(style); //#else // sp = new PictureBoxStyleProperties(style); //#endif // sp.Image = Image.FromFile(@"..\..\Resources\car2.jpg"); // sp.SizeMode = PictureBoxSizeMode.StretchImage; #endregion #endregion #region HeaderCells rowIndex = 14; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, 15, gridControl1.ColCount)); gridControl1[rowIndex, 1] = headerstyle; gridControl1[rowIndex, 1].Text = "Header Cells"; rowIndex = 16; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex, gridControl1.ColCount)); gridControl1[rowIndex, 1] = subheaderstyle; gridControl1[rowIndex, 1].Text = "Header Cells - Used as Column Header and RowHeader cells"; rowIndex++; rowIndex++; gridControl1[rowIndex, colIndex].Text = "Header Text"; gridControl1[rowIndex, colIndex].CellType = GridCellTypeName.Header; gridControl1[rowIndex, colIndex + 2].Text = "Header Text"; gridControl1[rowIndex, colIndex + 2].CellType = GridCellTypeName.Header; #endregion #region ProgressBar Cells rowIndex = 21; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount)); gridControl1[rowIndex, 1] = subheaderstyle; gridControl1[rowIndex, 1].Font.Size = 10; gridControl1[rowIndex, 1].CellType = GridCellTypeName.CheckBox; gridControl1[rowIndex, 1].Description = "ProgressBar Cells"; rowIndex = 24; GridStyleInfo style1 = gridControl1[rowIndex, 2]; GridProgressBarInfo progressBarEx1 = style1.ProgressBar; style1.CellType = "ProgressBar"; style1.Themed = false; style1.BackColor = System.Drawing.SystemColors.Control; style1.CellAppearance = GridCellAppearance.Raised; progressBarEx1.BackGradientEndColor = System.Drawing.SystemColors.ControlLightLight; progressBarEx1.BackGradientStartColor = System.Drawing.SystemColors.ControlDark; progressBarEx1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.VerticalGradient; progressBarEx1.BackMultipleColors = new System.Drawing.Color[] { System.Drawing.SystemColors.ControlDark, System.Drawing.SystemColors.ControlLightLight, System.Drawing.SystemColors.Control }; progressBarEx1.BackSegments = false; progressBarEx1.BackTubeEndColor = System.Drawing.SystemColors.ControlLightLight; progressBarEx1.BackTubeStartColor = System.Drawing.SystemColors.ControlDark; //progressBarEx1.Border3DStyle = System.Windows.Forms.Border3DStyle.RaisedOuter; //progressBarEx1.BorderColor = System.Drawing.Color.Black; progressBarEx1.FontColor = System.Drawing.SystemColors.HighlightText; progressBarEx1.ForeColor = System.Drawing.Color.MediumBlue; progressBarEx1.ForegroundImage = null; progressBarEx1.GradientEndColor = System.Drawing.Color.Lime; progressBarEx1.GradientStartColor = System.Drawing.Color.Red; progressBarEx1.MultipleColors = new System.Drawing.Color[] { System.Drawing.Color.DarkRed, System.Drawing.Color.Red, System.Drawing.Color.Black }; progressBarEx1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube; progressBarEx1.SegmentWidth = 20; progressBarEx1.StretchImage = false; progressBarEx1.StretchMultGrad = false; progressBarEx1.TextShadow = false; progressBarEx1.TubeEndColor = System.Drawing.SystemColors.Control; progressBarEx1.TubeStartColor = System.Drawing.SystemColors.ControlDark; progressBarEx1.ProgressValue = 79; gridControl1.RowHeights[rowIndex] = 23; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6)); int rowIndex1 = rowIndex; int colIndex1 = 2; gridControl1.ColWidths[8] = 23; // Vertical rowIndex += 2; GridStyleInfo stylev3 = gridControl1[rowIndex, 8]; GridProgressBarInfo progressBarExv3 = stylev3.ProgressBar; stylev3.CellType = "ProgressBar"; stylev3.Themed = false; progressBarExv3.ProgressOrientation = Orientation.Vertical; progressBarExv3.BackGradientEndColor = System.Drawing.Color.White; progressBarExv3.BackGradientStartColor = System.Drawing.Color.LightGray; progressBarExv3.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.System; progressBarExv3.BackSegments = false; progressBarExv3.BackTubeEndColor = System.Drawing.Color.White; progressBarExv3.BackTubeStartColor = System.Drawing.Color.LightGray; progressBarExv3.FontColor = System.Drawing.Color.White; progressBarExv3.ForegroundImage = null; progressBarExv3.GradientEndColor = System.Drawing.Color.Lime; progressBarExv3.GradientStartColor = System.Drawing.Color.Red; progressBarExv3.MultipleColors = new System.Drawing.Color[0]; progressBarExv3.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.System; progressBarExv3.SegmentWidth = 12; progressBarExv3.TubeEndColor = System.Drawing.Color.Black; progressBarExv3.TubeStartColor = System.Drawing.Color.Red; progressBarExv3.ProgressValue = 75; gridControl1.RowHeights[rowIndex] = 23; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 8, rowIndex + 8, 8)); // Horizontal GridStyleInfo style3 = gridControl1[rowIndex, colIndex1]; GridProgressBarInfo progressBarEx3 = style3.ProgressBar; style3.CellType = "ProgressBar"; style3.Themed = false; progressBarEx3.BackGradientEndColor = System.Drawing.Color.RosyBrown; progressBarEx3.BackGradientStartColor = System.Drawing.Color.DarkRed; progressBarEx3.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.VerticalGradient; progressBarEx3.BackMultipleColors = new System.Drawing.Color[0]; progressBarEx3.BackSegments = false; progressBarEx3.BackTubeEndColor = System.Drawing.SystemColors.Control; progressBarEx3.BackTubeStartColor = System.Drawing.Color.LightGray; progressBarEx3.FontColor = System.Drawing.Color.Lime; progressBarEx3.ForegroundImage = null; progressBarEx3.GradientEndColor = System.Drawing.Color.Lime; progressBarEx3.GradientStartColor = System.Drawing.Color.Red; progressBarEx3.MultipleColors = new System.Drawing.Color[] { System.Drawing.SystemColors.ControlDarkDark, System.Drawing.SystemColors.ControlLight, System.Drawing.SystemColors.ControlDark, System.Drawing.SystemColors.Control }; progressBarEx3.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube; progressBarEx3.TextVisible = false; progressBarEx3.TubeEndColor = System.Drawing.Color.Black; progressBarEx3.TubeStartColor = System.Drawing.Color.Red; progressBarEx3.ProgressValue = 75; gridControl1.RowHeights[rowIndex] = 23; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6)); // Horizontal rowIndex += 2; GridStyleInfo style4 = gridControl1[rowIndex, colIndex1]; GridProgressBarInfo progressBarEx4 = style4.ProgressBar; style4.CellType = "ProgressBar"; style4.Themed = false; // // progressBarEx4 // progressBarEx4.BackGradientEndColor = System.Drawing.Color.White; progressBarEx4.BackGradientStartColor = System.Drawing.Color.LightGray; progressBarEx4.ForegroundImage = GetBitmap("Coffee Bean.bmp"); progressBarEx4.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Image; progressBarEx4.BackMultipleColors = new System.Drawing.Color[0]; progressBarEx4.BackSegments = false; progressBarEx4.BackTubeEndColor = System.Drawing.Color.White; progressBarEx4.BackTubeStartColor = System.Drawing.Color.LightGray; progressBarEx4.FontColor = System.Drawing.SystemColors.Control; progressBarEx4.BackgroundImage = GetBitmap("Soap-Bubbles.jpg");; progressBarEx4.GradientEndColor = System.Drawing.Color.Lime; progressBarEx4.GradientStartColor = System.Drawing.Color.Red; progressBarEx4.MultipleColors = new System.Drawing.Color[0]; progressBarEx4.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Image; progressBarEx4.SegmentWidth = 12; progressBarEx4.StretchImage = false; progressBarEx4.TubeEndColor = System.Drawing.Color.Black; progressBarEx4.TubeStartColor = System.Drawing.Color.Red; progressBarEx4.ProgressValue = 75; gridControl1.RowHeights[rowIndex] = 23; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6)); // Horizontal rowIndex += 2; GridStyleInfo style7 = gridControl1[rowIndex, colIndex1]; GridProgressBarInfo progressBarEx7 = style7.ProgressBar; style7.CellType = "ProgressBar"; style7.Themed = false; // // progressBarEx7 // progressBarEx7.BackGradientEndColor = System.Drawing.SystemColors.ControlLightLight; progressBarEx7.BackGradientStartColor = System.Drawing.SystemColors.ControlDark; progressBarEx7.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.VerticalGradient; progressBarEx7.BackMultipleColors = new System.Drawing.Color[0]; progressBarEx7.BackSegments = false; progressBarEx7.BackTubeEndColor = System.Drawing.Color.Silver; progressBarEx7.BackTubeStartColor = System.Drawing.Color.White; progressBarEx7.FontColor = System.Drawing.Color.White; progressBarEx7.ForegroundImage = null; progressBarEx7.GradientEndColor = System.Drawing.Color.Lime; progressBarEx7.GradientStartColor = System.Drawing.Color.Red; progressBarEx7.MultipleColors = new System.Drawing.Color[] { System.Drawing.SystemColors.ControlDarkDark, System.Drawing.SystemColors.ControlLightLight, System.Drawing.SystemColors.ActiveCaption }; progressBarEx7.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube; progressBarEx7.SegmentWidth = 8; progressBarEx7.StretchImage = false; progressBarEx7.TextVisible = false; progressBarEx7.TubeEndColor = System.Drawing.Color.Honeydew; progressBarEx7.TubeStartColor = System.Drawing.Color.Green; progressBarEx7.ProgressValue = 75; gridControl1.RowHeights[rowIndex] = 23; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6)); // Horizontal rowIndex += 2; GridStyleInfo style9 = gridControl1[rowIndex, colIndex1]; GridProgressBarInfo progressBarEx9 = style9.ProgressBar; style9.CellType = "ProgressBar"; style9.Themed = false; // // progressBarEx9 // progressBarEx9.BackGradientEndColor = System.Drawing.Color.White; progressBarEx9.BackGradientStartColor = System.Drawing.Color.LightGray; progressBarEx9.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Tube; progressBarEx9.BackMultipleColors = new System.Drawing.Color[0]; progressBarEx9.BackSegments = false; progressBarEx9.BackTubeEndColor = System.Drawing.Color.White; progressBarEx9.BackTubeStartColor = System.Drawing.Color.LightGray; progressBarEx9.ForegroundImage = null; progressBarEx9.GradientEndColor = System.Drawing.Color.Yellow; progressBarEx9.GradientStartColor = System.Drawing.Color.Red; progressBarEx9.MultipleColors = new System.Drawing.Color[0]; progressBarEx9.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Gradient; progressBarEx9.SegmentWidth = 12; progressBarEx9.TubeEndColor = System.Drawing.Color.Black; progressBarEx9.TubeStartColor = System.Drawing.Color.Red; progressBarEx9.ProgressValue = 75; gridControl1.RowHeights[rowIndex] = 23; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6)); // Horizontal rowIndex += 2; GridStyleInfo style14 = gridControl1[rowIndex, colIndex1]; GridProgressBarInfo progressBarEx14 = style14.ProgressBar; style14.CellType = "ProgressBar"; style14.Themed = true; // // progressBarEx14 // progressBarEx14.BackGradientEndColor = System.Drawing.Color.White; progressBarEx14.BackGradientStartColor = System.Drawing.Color.LightGray; progressBarEx14.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.System; progressBarEx14.BackSegments = false; progressBarEx14.BackTubeEndColor = System.Drawing.Color.White; progressBarEx14.BackTubeStartColor = System.Drawing.Color.LightGray; progressBarEx14.FontColor = System.Drawing.Color.White; progressBarEx14.ForegroundImage = null; progressBarEx14.GradientEndColor = System.Drawing.Color.FromArgb(255, 187, 111); progressBarEx14.GradientStartColor = System.Drawing.Color.FromArgb(0, 21, 84); progressBarEx14.MultipleColors = new System.Drawing.Color[0]; progressBarEx14.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.WaitingGradient; progressBarEx14.SegmentWidth = 12; progressBarEx14.TubeEndColor = System.Drawing.Color.Black; progressBarEx14.TubeStartColor = System.Drawing.Color.Red; progressBarEx14.ProgressValue = 75; gridControl1.RowHeights[rowIndex] = 23; gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6)); rowIndex += 2; GridStyleInfo styleCheckBox = gridControl1[rowIndex, colIndex1]; styleCheckBox.CellType = "CheckBox"; styleCheckBox.Description = "Animate"; styleCheckBox.Themed = true; styleCheckBox.CellValue = "False"; styleCheckBox.CheckBoxOptions.UncheckedValue = "False"; styleCheckBox.CheckBoxOptions.CheckedValue = "True"; styleCheckBox.FloatCell = true; //gridControl1.CurrentCellChanged += new EventHandler(gridControl1_CurrentCellChanged); gridControl1.CheckBoxClick += new GridCellClickEventHandler(gridControl1_CheckBoxClick); for (int i = 23; i <= 36; i++) { gridControl1.HideRows[i] = true; } #endregion this.gridControl1.EndUpdate(true); #endregion }