.net - Change DataGridViewCell BG Color Upon Creation -
currently there column in grid changes background colors when grid sort event called. bg color changes depending upon integer value within cell. right loop , has go through each row , locate particular cell , check value. unless must execute bit of code each time rows sorted otherwise go default color. i'm looking way write code permanently set background color of these cells upon creation when grid first loaded doesn't have set each time column header clicked , data sorted.
solution datagridview.cellformating event handler.
Comments
Post a Comment