DataGrid (Winforms) change color of text in celected cell, when i put mouse in it...

  • Thread starter Thread starter Serdge Kooleman
  • Start date Start date
S

Serdge Kooleman

Hi!

i have a windows app, DataGrid on it...
when i clicked at cell, it's appear small edit box in it.
how to change foregraund and background color of this text?
(by default it is blue selection on gray background)...
i want red background for example...
 
Serdge,

You should be able to get the DataGridTextBoxColumn instance for that
column from the data grid. Once you do, you can call the TextBox property
to get the actual TextBox that is displayed, and set the properties on that.

Hope this helps.
 
Back
Top