Solved

VB.Net - DataGridView Design Question

Posted on 2013-02-07
6
320 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
  • 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 200 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now