Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Alex Pag
|
Nov 23, 2009 - 4:04 AM
|
I change backgroud color for some rows like this... private void lvwContacts_ModifyCellStyle(object sender, ModifyCellStyleEventArgs e)
{
if (e.Cell.Row != null)
{
if (e.Cell.Row.Index % 2 == 0)
{
e.Style.BackgroundColor = Color.Red;
}
else
{
e.Style.BackgroundColor = Color.White;
}
}
} How i can disable change backgroud color for current cell when i move mouse in my grid or how i can change default color when i move mouse?
|
|
Alex Pag
|
Nov 30, 2009 - 12:59 AM
|
I have table with lines with different colors. when I move the mouse I want it does not change the cell color that you find the mouse. Who event i can use to I make him. MouseMove event already has changed the color background.
|
|
Alex Pag
|
Nov 25, 2009 - 1:06 AM
|
how I occupy in who cell it is cursor when i move the mouse
|
|
Technical Support
|
Nov 25, 2009 - 5:56 AM
|
You should use the grid’s method GetRenderableFromPoint() . This method returns an object of the Renderable type which you should check whether it is a cell or not.
|
|
Technical Support
|
Nov 23, 2009 - 10:16 AM
|
You can use the CellStyle.HoveredBackgroundColor property in the same way as you use the BackgroundColor property.
|
|