By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,101 Members | 1,463 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,101 IT Pros & Developers. It's quick & easy.

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

P: n/a
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...

--
thank you serge
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Serdge Kooleman" <Su***@web.de> wrote in message
news:O5*************@tk2msftngp13.phx.gbl...
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...

--
thank you serge

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.