|
-
December 4th, 2005, 11:04 PM
#1
Get BackColor value of the current cell in datagrid
Hi there,
How could I get the value of the BackColor property of the current cell in the datagrid? I'm thinking of using mouse click event to play with BackColor property of the cell.
The idea is shown:
Code:
Mouse_Down_Event( )
{
if( MyGrid.CurrentCell.BackColor == Color.Red)
MyGrid.CurrentCell.BackColor = Color.White
else
MyGrid.CurrentCell.BackColor = Red
}
I tried to override Paint() method, and work with the properties of the cell through Paint() method but it didn't work.
I tried to play around the textBox object's properties, but it didn't work.
Could anyone help me please?
*I don't mind to use either DataGrid object or FlexGrid object.
Have an enjoyable cup of coffee .
illy Maker
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|