Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB.Net - DataGridView Design Question

Posted on 2013-02-07
6
Medium Priority
?
328 Views
Last Modified: 2013-02-07
Good Day Experts!

I have more of a design type "opinion" question.  

I have a DataGridview that I load with records from a SQL table.  The User can then select multiple rows and right-click to execute functionality on those selected rows.  

When the code is done and I reset the cursor back, how would you display the DataGrid?
Would you leave the rows selected or deselect and put get that little black arrow on the left back to the top next to the first row?

Thanks,
jimbo99999
0
Comment
Question by:Jimbo99999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 38864595
and I reset the cursor back....
If you reset the cursor back the multiselection ends..and a single row is selected
0
 

Author Comment

by:Jimbo99999
ID: 38864615
Sorry, I meant the mouse cursor I reset back from the hourglass.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 800 total points
ID: 38864703
Depends on what the action is and what the workflow is. Would the user want to do something else on same rows after finishing what they did? Or would they want to do something else. I think this will be the basic deciding factor.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:Jimbo99999
ID: 38864722
They would be done with the action on the rows.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38864968
Then I would deselect the rows or provide a button which does that.
0
 

Author Comment

by:Jimbo99999
ID: 38865019
Ok, I have it part way:

dgrdGetBills.ClearSelection()
dgrdGetBills.Rows(0).Selected = True

Problem is that little black arrow in the left margin of the grid, how do I make that go to the first row like the selection?

Thanks,
jimbo99999
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question