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

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...
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top