Nevron Forum

NDataGridView - Change Row color

https://www.nevron.com/Forum/Topic5337.aspx

By Norman Heinrich - Thursday, July 7, 2011

Hi,

I am using NDataGridView as an editor. Now it is necessary to change the back color from different rows.
In an example I tried :

Dim st As New DataGridViewCellStyle
st.BackColor = Color.CadetBlue

NDataGridView1.SelectedRows(0).Cells(0).Style.ApplyStyle(st)

but only the editing back color was set. If I am not in editing mode the row/cell is white :-/

Any hints?

Kind regards
Norman
By Nevron Support - Thursday, July 7, 2011

Hi Norman,

Try to set nDataGridView.EnableCellCustomDraw to false.