Is there a way to specify the hexadecimal code(something like #E9E9E9) while setting the color of a datagrid instead of using the below code.
dg.BackColor = System.Drawing.Color.LightGray
dg.BackColor = System.Drawing.ColorTranslator.FromHtml("#E9E9E9");