Set backcolor for specific cell in gridview in VB.net Visual Studio -


i have fixed size grid , specify backcolor of specific cells within grid, not whole rows , not whole columns single cell or maybe range of cells. please see screenshot below , example of mean.

ideally via vb alter backcolor based on values selected dropdown list.

enter image description here

edit:

based on answer below modified until got below worked.

gridview.rows(n).cells(n).backcolor = drawing.color.fromargb(n, n, n) 

assuming creating windows forms application, can use datagridview. allows individual cells styled using following property:

datagridview1.rows[0].cells[0].style.backcolor = color.red 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -