-
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
-
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
Forum Rules
|
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
|
Bookmarks