Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB.Net - DataGridView Design Question

Posted on 2013-02-07
6
Medium Priority
?
329 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 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
Technology Partners: 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!

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

885 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