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.
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
Post a Comment