Datagrid: change color of selected row
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Datagrid: change color of selected row

  1. #1
    Join Date
    Aug 2003
    Location
    Buenos Aires, Argentina
    Posts
    513

    Datagrid: change color of selected row

    Hi vbPals !!!

    I have a datagrid and when I select a row, it shows the default black color (which has nothing to do with the graphical user interface of my application...)

    How could I change it ? (I accept "advanced" answers )

  2. #2
    Join Date
    Aug 2002
    Location
    Dubai
    Posts
    1,183

    Re: Datagrid: change color of selected row

    DataGrid does not support changing of background color for individual rows, columns or cells.
    Last edited by Sahir; March 29th, 2005 at 11:04 PM.

  3. #3
    Join Date
    Aug 2002
    Location
    Dubai
    Posts
    1,183

    Re: Datagrid: change color of selected row

    Use the MSFlexGrid control. This is generally used as an unbound control. While it is comparatively easy to display data in this grid, allowing users to edit data in the grid can be tricky. I use textbox overlay on cell technique when I have allow users to edit data in the grid. You could also make use of the keydown/keypress events to set the grid's text.
    Last edited by Sahir; March 30th, 2005 at 01:03 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center