Home > Net >  Devexpress gridview set the color cell
Devexpress gridview set the color cell

Time:11-11

In addition to using RowCellStyle and customdrawcell event trigger, there are other operations can be directly to change the color of a single cell, such as through similar

Private void SetCellColor ()
{
Enclosing gridview1. Appearance. RowCell [1, 5] BackColor=Color. Red
}
This directly to specify the color of the first line of the fifth column

Note: to be able to direct operation in the process of other controls, rather than having to the grid itself fixed event Jue hair



CodePudding user response:

Artificial placed at the top, there is no such way? O great god told

CodePudding user response:

Seems to be no way, I also have been looking for, so powerful control, set display properties for cell no, really sorry

CodePudding user response:

If I remember correctly, I remember in the datagridview Settings interface has the form color Settings
  •  Tags:  
  • C#
  • Related