Hello,
I am working on a project in Wisej where I need to customize the appearance of cells in a DataGridView
. Specifically, I want to remove the grid borders for cells in the column "group_ngay"
when the cell is empty or contains no data.
In Windows Forms, I used the CellPainting
event to achieve similar results, but I am having trouble using this approach in Wisej. For example, the e.Bounds
and e.Paint
methods are not available, and I am unsure how to proceed with customizing the borders.
Is there a recommended way to:
Any example or guidance would be greatly appreciated!
Thank you!
Hi Nhan,
You can attach to the CellFormatting event and do the following:
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex == 2) {
e.CellStyle.CssStyle = “border-width:0px!important”;
}
}
Best Regards,
Alaa
Hi Nhan,
You can attach to the CellFormatting event and do the following:
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex == 2) {
e.CellStyle.CssStyle = “border-width:0px!important”;
}
}
Best Regards,
Alaa
Hi Nhan,
We’re actively looking at this issue and we’ll update you ASAP!
Best Regards,
Alaa
Please login first to submit.