NDataGridView - Change Row color


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Norman,

Try to set nDataGridView.EnableCellCustomDraw to false.


Best Regards,
Nevron Support Team


Norman Heinrich
Norman Heinrich
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 2, Visits: 1
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search