Hi,
I'm updating the cell style of a datagridview control but the colour change is affecting the complete row. Is there a way to only change the colour (and/or style) of just one specific cell?
The code I'm currently using is:
As mentioned, the above changes the entire row to orange, not just the cell.
Any help would be appreciated.
Thanks,
N
I'm updating the cell style of a datagridview control but the colour change is affecting the complete row. Is there a way to only change the colour (and/or style) of just one specific cell?
The code I'm currently using is:
Code:
Private MySub
Dim Row as DataGridViewRow
For Each Row In MyDataGridView.RowsDim DGVStyle as DataGridViewCellStyle
DGVStyle = Row.DefaultCellStyle
DGVStyle.ForeColor = Color.Orange
Row.Cells.Item(2).Style = DGVStyleNext RowEnd Sub
Any help would be appreciated.
Thanks,
N