VB.NET and datagrids (windows not web)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: VB.NET and datagrids (windows not web)

  1. #1
    Marie Guest

    VB.NET and datagrids (windows not web)


    Hello,
    I have a question about the datagrid control in VB.NET. In VB6 I used to
    be able to tell what row (if any) was selected in a grid. I mean that a row
    was itself highlighted. In VB.NET it appears that whatever one has the arrow
    in the row header column is the one selected, even if it is not hightlighted.
    Since that arrow is always there, the code is always saying that a record
    is selected. The problem is, I have a button that I want to enable/disable
    depending on whether a row is selected. Does anyone have any hints on how
    to use this control?!
    Thanks,
    Marie


  2. #2
    Jeff Johnson Guest

    Re: VB.NET and datagrids (windows not web)


    "Marie" <mws323@excite.com> wrote:
    >
    >Hello,
    >I have a question about the datagrid control in VB.NET. In VB6 I used to
    >be able to tell what row (if any) was selected in a grid. I mean that a

    row
    >was itself highlighted. In VB.NET it appears that whatever one has the arrow
    >in the row header column is the one selected, even if it is not hightlighted.
    >Since that arrow is always there, the code is always saying that a record
    >is selected. The problem is, I have a button that I want to enable/disable
    >depending on whether a row is selected. Does anyone have any hints on how
    >to use this control?!
    >Thanks,
    >Marie


    The Winforms FAQ has lots of hints for the control:

    http://www.syncfusion.com/FAQ/WinForms/default.asp#44

    If it doesn't answer your question directly, you'll often at least get a
    clue as to what to fiddle with....

    Good Luck!

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