DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links