Solved

VB.Net - DataGridView Design Question

Posted on 2013-02-07
6
326 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 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

728 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