Replicate RowHeaderMouseDoubleClick in web form

Posted on 2011-09-13
Last Modified: 2012-05-12
On a windows form the datagrid has an event RowHeaderMouseDoubleClick
I'm trying to convert a windows form to run in 2.0 as a web form.
How can I replicate RowHeaderMouseDoubleClick in a web form using a gridview?
Question by:AlHal2
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
  • 4
  • 4

Author Comment

ID: 36530315
In the windows form this event opened a sub form using "showdialog"

The sub form had another grid that was populated using the selected value on the grid of the first form eg.

i = PreviousForm.Grid2.CurrentRow.Index

¿I'm trying to replicate this functionality in a web form using 2.0 with vb 2005


Expert Comment

ID: 36535452
I don't think you can do this, and I can't remember any websites which used a double click instead of a single.
Alternatives you could user are:
Modal popup using the ajax toolkit
On hover panel
Tooltip manipulation.

It really depends what you're wanting to do with this sub grid.

Author Comment

ID: 36536159
Single click is fine.  The main form is basically a read only screen.  It has drop down boxes and buttons for filtering the grid.
When the user clicks the grid on the main form it brings up a subform with a grid displaying more information for the selected item.  It also has text boxes and buttons for updating and inserting data on the grid.
By default the text boxes also reflect what was clicked on the main form.
Industry Leaders: 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!


Expert Comment

ID: 36536344
personally, I'd build a web user control with a formview for displaying and editing the record (to mimic your subgrid popup), and place this new control inside a template field on the datagrid.  Then, when a record in the parent grid is selected, the formview is displayed in a modal pop up
(requires the ajax toolkit).


Accepted Solution

mr_nadger earned 300 total points
ID: 36536375
possibly overkill, but I did this for a web app at work and it works nicely.
I only needed a bit of code to set record numbers in the web control when the parent grid databound, and another bit to display the formview in a modal popup.
An alternative would be to display the formview in a collapsible panel

Author Comment

ID: 36536898
I don't have the AJAX toolkit, so was your second solution with or withou it?

Author Closing Comment

ID: 36548183
I think the AJAX toolkit is easily available, so here are the points.

Expert Comment

ID: 36548194

Download, tutorials and advice :)
A lot of people on EE use it too.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 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