Hi,
I am trying to change border for a specific cell at runtime. I exactly know what cell I have to update and I don't want to use CellFormatting event handler for performance issues.
I am using the following code to accomplish this task:
It works fine, but the bottom and right cell borders are not updated. What's wrong? Can you help me to fix that?
Thanks in advance,
Lorenzo
I am trying to change border for a specific cell at runtime. I exactly know what cell I have to update and I don't want to use CellFormatting event handler for performance issues.
I am using the following code to accomplish this task:
GridViewCellInfo cellInfo = radGridView.Rows[i].Cells[j];
cellInfo.Style.DrawFill =
true
;
cellInfo.Style.NumberOfColors = 1;
cellInfo.Style.CustomizeFill =
true
;
cellInfo.Style.DrawBorder =
true
;
cellInfo.Style.CustomizeBorder =
true
;
cellInfo.Style.BorderWidth = 1;
cellInfo.Style.BorderColor = Color.Red;
cellInfo.Style.BorderColor2 = Color.Red;
cellInfo.Style.BorderColor3 = Color.Red;
cellInfo.Style.BorderColor4 = Color.Red;
cellInfo.Style.BackColor = Color.Yellow;
It works fine, but the bottom and right cell borders are not updated. What's wrong? Can you help me to fix that?
Thanks in advance,
Lorenzo