Hi, i tried to add create a progress bar and display it on a grid control. The progress bar is given a information of the starting rowindex and colIndex and the length of the progress bar.
But when i run this add function, the grid only merge the cells together without showing the progress bar.
I''ve attacted the screen shots
private void AddBar(int rowIndex, int colIndex, int length, Cars objCar)
{
this.gridControl1.BeginUpdate();
GridStyleInfo style = gridControl1[rowIndex, colIndex];
GridProgressBarInfo timeBar = style.ProgressBar;
style.ProgressBar.BackSegments = false;
timeBar.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Tube;
style.ProgressBar.BackTubeEndColor = System.Drawing.Color.White;
style.ProgressBar.BackTubeStartColor = System.Drawing.Color.DodgerBlue;
style.ProgressBar.BackGradientStartColor = System.Drawing.Color.DodgerBlue;
style.ProgressBar.BackGradientEndColor = System.Drawing.Color.White;
style.ProgressBar.BackMultipleColors = new System.Drawing.Color[0];
style.ProgressBar.GradientEndColor = System.Drawing.Color.Lime;
style.ProgressBar.GradientStartColor = System.Drawing.Color.Red;
style.CellType = "ProgressBar";
style.CellAppearance = GridCellAppearance.Raised;
style.ProgressBar.ProgressStyle = ProgressBarStyles.MultipleGradient;
style.ProgressBar.ForeColor = System.Drawing.Color.DodgerBlue;
style.ProgressBar.TextVisible = false;
style.ReadOnly = true;
style.ProgressBar.ProgressValue = 100;
this.gridControl1.RowHeights[rowIndex] = 23;
this.gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex, length));
gridControl1.EndUpdate(true);
this.gridControl1.Refresh();
}
Screenshots1.zip