CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Mar 2004
    Location
    Israel
    Posts
    638

    "Selected" is not reflected visually

    Hello all,


    My problem is that though I set "DataGridView2.Rows(i).Selected = True" -
    the row is not "marked"(dark gray) as selected.

    What should I do to display the row as selected by user and not by the program?
    Do I need to raise any kind of event , or something?

    I have the exact problem with treeview, when I select a node via the program by setting :
    TreeView1.SelectedNode = x
    I do not see visually that the node is selected, though the event "TreeView1_AfterSelect" is triggered.

    -- edit --
    I use VB .NET 2005
    ----------
    Please advise, thanks.
    Last edited by Guysl; August 2nd, 2008 at 01:53 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
  •  





Click Here to Expand Forum to Full Width

Featured