datagrid cell problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • melanieab

    #1

    datagrid cell problem

    Hi,
    I have a datagrid with a datatable, and am using the MouseMove event to make
    a tooltip pop up whenever the text in the cell is longer than the cell width.
    This works ok, but there's a problem. When the mouse enters the cell, the
    cell backcolor turns off-white/beige and the text is highlighted. (This also
    happens when I just click on a cell to select the row - at least until I
    release the mouse button.) I do have a CustomDataTable Style where I set
    ts.BackColor = Color.Black;
    ts.ForeColor = Color.LightGray ; // the text color
    ts.SelectionBac kColor = Color.Black;
    ts.SelectionFor eColor = Color.Cornflowe rBlue;
    Is there anything to prevent this from happening, or anything I can add to
    the tablestyle that says that, upon MouseEnter the backcolor is black and the
    forecolor is cornflowerblue, or any other ideas? (overriding)
    Thanks!!!
    Mel
Working...