Change color of selected cell in MSHFlexGrid


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Change color of selected cell in MSHFlexGrid

  1. #1
    Ritesh Guest

    Change color of selected cell in MSHFlexGrid


    hi
    do you know how can i change backColor of a selected cell in MSHFlexGrid
    and if I select another cell then the color of previously selected cell should
    become White and color of newly selected cell should become Red.

    Thanks...(in advance)


  2. #2
    shobhan Guest

    Re: Change color of selected cell in MSHFlexGrid


    "Ritesh" <riteshindian2000@yahoo.com> wrote:
    >
    >hi
    >do you know how can i change backColor of a selected cell in MSHFlexGrid
    >and if I select another cell then the color of previously selected cell

    should
    >become White and color of newly selected cell should become Red.
    >
    >Thanks...(in advance)
    >

    hi ritesh .. copy the code in the following two events

    Private Sub MSHFlexGrid1_EnterCell()
    MSHFlexGrid1.CellBackColor = vbRed
    End Sub

    Private Sub MSHFlexGrid1_LeaveCell()
    MSHFlexGrid1.CellBackColor = vbWhite
    End Sub

    mshflexi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center