.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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -