473,508 Members | 2,329 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GridView Multiple Select Buttons

Good morning!

How do I determine which SELECT button was clicked in a GridView?

The multiple SELECT buttons will be used for an application approval process.

Thank you in advance for your support in this matter.
Mar 13 '06 #1
6 10067
I would use checkboxes on each row to select the row and then click on a
button that triggers the approval process. You may look at this example for
the code to do such a GridView:
http://www.webswapp.com/codesamples/...n/default.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Terry" wrote:
Good morning!

How do I determine which SELECT button was clicked in a GridView?

The multiple SELECT buttons will be used for an application approval process.

Thank you in advance for your support in this matter.

Mar 13 '06 #2
Thank you for the alternative method in establishing an approval process.

However, could you provide me with an idea on how to accomplish determining
which SELECT button was clicked within a GridView.

Again, thanks!

"Phillip Williams" wrote:
I would use checkboxes on each row to select the row and then click on a
button that triggers the approval process. You may look at this example for
the code to do such a GridView:
http://www.webswapp.com/codesamples/...n/default.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Terry" wrote:
Good morning!

How do I determine which SELECT button was clicked in a GridView?

The multiple SELECT buttons will be used for an application approval process.

Thank you in advance for your support in this matter.

Mar 13 '06 #3
When a Select button is clicked a SelectedIndexChanged event is triggered.
You can consume that event like this article explained to get the selected
row:
http://msdn2.microsoft.com/en-us/lib...ed(VS.80).aspx

This would allow you to select one row at a time.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Terry" wrote:
Thank you for the alternative method in establishing an approval process.

However, could you provide me with an idea on how to accomplish determining
which SELECT button was clicked within a GridView.

Again, thanks!

"Phillip Williams" wrote:
I would use checkboxes on each row to select the row and then click on a
button that triggers the approval process. You may look at this example for
the code to do such a GridView:
http://www.webswapp.com/codesamples/...n/default.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Terry" wrote:
Good morning!

How do I determine which SELECT button was clicked in a GridView?

The multiple SELECT buttons will be used for an application approval process.

Thank you in advance for your support in this matter.

Mar 13 '06 #4
Terry <Te***@discussions.microsoft.com>'s wild thoughts were
released on Mon, 13 Mar 2006 08:15:27 -0800 bearing the
following fruit:
Good morning!

How do I determine which SELECT button was clicked in a GridView?

The multiple SELECT buttons will be used for an application approval process.

Thank you in advance for your support in this matter.


Use SelectedRow

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
GridView1.SelectedIndexChanged
' Get the currently selected row using the SelectedRow
property.
Dim row As GridViewRow = GridView1.SelectedRow
Page.Title = "You selected " & row.Cells(1).Text
End Sub

Jan Hyde (VB MVP)

--
Police arrested two kids yesterday, one was drinking battery acid, the
other was eating fireworks.

They charged one and let the other one off.

Mar 13 '06 #5
Phillip, currently I am using several SELECT buttons in my GridView. As a
result, I am trying to determine which SELECT button within the Gridview was
clicked.

Again, could you provide a VB sample code for this solution.

Thank you for your assistance.

"Phillip Williams" wrote:
When a Select button is clicked a SelectedIndexChanged event is triggered.
You can consume that event like this article explained to get the selected
row:
http://msdn2.microsoft.com/en-us/lib...ed(VS.80).aspx

This would allow you to select one row at a time.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Terry" wrote:
Thank you for the alternative method in establishing an approval process.

However, could you provide me with an idea on how to accomplish determining
which SELECT button was clicked within a GridView.

Again, thanks!

"Phillip Williams" wrote:
I would use checkboxes on each row to select the row and then click on a
button that triggers the approval process. You may look at this example for
the code to do such a GridView:
http://www.webswapp.com/codesamples/...n/default.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Terry" wrote:

> Good morning!
>
> How do I determine which SELECT button was clicked in a GridView?
>
> The multiple SELECT buttons will be used for an application approval process.
>
> Thank you in advance for your support in this matter.

Mar 13 '06 #6
When you say "several SELECT buttons", do you mean one Select button per
GridView row or more than one Select button per row?

If the former then the previous MSDN link I posted applies.

But, if you mean more than one Select button per GridView row, then you are
not using this command properly. There should be only one Select button per
GridView row. Consider the ButtonField; each ButtonField performs a specific
command based on its CommandName property.
http://msdn2.microsoft.com/en-us/lib...ld(VS.80).aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Terry" wrote:
Phillip, currently I am using several SELECT buttons in my GridView. As a
result, I am trying to determine which SELECT button within the Gridview was
clicked.

Again, could you provide a VB sample code for this solution.

Thank you for your assistance.

"Phillip Williams" wrote:
When a Select button is clicked a SelectedIndexChanged event is triggered.
You can consume that event like this article explained to get the selected
row:
http://msdn2.microsoft.com/en-us/lib...ed(VS.80).aspx

This would allow you to select one row at a time.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Terry" wrote:
Thank you for the alternative method in establishing an approval process.

However, could you provide me with an idea on how to accomplish determining
which SELECT button was clicked within a GridView.

Again, thanks!

"Phillip Williams" wrote:

> I would use checkboxes on each row to select the row and then click on a
> button that triggers the approval process. You may look at this example for
> the code to do such a GridView:
> http://www.webswapp.com/codesamples/...n/default.aspx
> --
> HTH,
> Phillip Williams
> http://www.societopia.net
> http://www.webswapp.com
>
>
> "Terry" wrote:
>
> > Good morning!
> >
> > How do I determine which SELECT button was clicked in a GridView?
> >
> > The multiple SELECT buttons will be used for an application approval process.
> >
> > Thank you in advance for your support in this matter.

Mar 13 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2101
by: Lau Lei Cheong | last post by:
Hello, Let's say that I have multiple submit buttons on a form (imagebuttons actually, but documentations say that <input type=image> which a called image buttons should behave like submit...
5
6541
by: Vik | last post by:
If there are a few Select buttons in a datagrid, is there a way to distinguish in code which button was clicked? Thanks.
1
5866
by: abhishekhs | last post by:
Hi all I have more than one multiple select lists in a page. Something like this <tr> <td> <select NAME="StrainList" ID="StrainList" SIZE="5" multiple="multiple" style="width: 150px"> <?...
2
2633
by: rudranee | last post by:
hello, How do i declare multiple submit buttons on a form? and how do i come to know on the next page which button has been clicked? Can i do it in JSP page? Please tell me.
0
3012
by: New2ASP | last post by:
Thanks everyone in advance for your help. I am fairly new to web development but an experienced window-based developer. Here's the structure of my Gridview Column 1 : Checkbox with SelectAll...
9
11878
by: lilOlMe | last post by:
Hi there! I have generated a GridView that looks something like: SportName| CompanyNameX |CompanyNameY |CompanyNameZ Hockey.....| Shipping------------ |Accounting-------- |Shipping------------...
2
6923
by: 6afraidbecause789 | last post by:
Hi - Has anyone ever used toggle buttons to select items in a listbox? I'd like to put about 24 toggle buttons on an unbound form that select or deselect items in a multiple select listbox. I've...
6
7536
by: phpnewbie26 | last post by:
My current form has one multiple select drop down menu as well as few other drop down menus that are single select. Originally I had it so that the multiple select menu was first, but this created...
3
2156
by: kipthemann | last post by:
My form processor is giving me a bit of trouble for some unknown reason. I was sure I had both my form and my processor correctly scripted. I am pretty new to this though. All of the fields except...
0
7324
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7382
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.