473,511 Members | 15,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get data item from datagrid on web form

Hi all:

I have a web form that builds a datagrid from SQL, and I used the
propertybuilder to add a "select" column to the grid. However I cannot
figure out how to get the selected data item, I can return the index, and
the grid itself, but not the actual select row. I.e. let's say the grid
looks like this:

Data 1
Data 2
Data 3

If I click on Data 3 I want to get that data item, data 3...When I used
datagrid.getselecteditem it returned the grid object itself and every
snippet I have found is for windows forms...

Thanks in advance for any and all help.

John.
Nov 16 '05 #1
2 1795
Look at the ItemCommand event.

Chris
"John Straumann" <js********@cogeco.ca> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi all:

I have a web form that builds a datagrid from SQL, and I used the
propertybuilder to add a "select" column to the grid. However I cannot
figure out how to get the selected data item, I can return the index, and
the grid itself, but not the actual select row. I.e. let's say the grid
looks like this:

Data 1
Data 2
Data 3

If I click on Data 3 I want to get that data item, data 3...When I used
datagrid.getselecteditem it returned the grid object itself and every
snippet I have found is for windows forms...

Thanks in advance for any and all help.

John.

Nov 16 '05 #2
Hi Chris:

Thanks!

John.

"Chris, Master of All Things Insignificant" <chris@No_Spam_Please.com> wrote
in message news:uP****************@TK2MSFTNGP11.phx.gbl...
Look at the ItemCommand event.

Chris
"John Straumann" <js********@cogeco.ca> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi all:

I have a web form that builds a datagrid from SQL, and I used the
propertybuilder to add a "select" column to the grid. However I cannot
figure out how to get the selected data item, I can return the index, and
the grid itself, but not the actual select row. I.e. let's say the grid
looks like this:

Data 1
Data 2
Data 3

If I click on Data 3 I want to get that data item, data 3...When I used
datagrid.getselecteditem it returned the grid object itself and every
snippet I have found is for windows forms...

Thanks in advance for any and all help.

John.


Nov 16 '05 #3

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

Similar topics

2
1399
by: naija naija | last post by:
Hello guys i made a Datagrid with Editing,Update and Cancel using VS.NET. to my surprise nothing is on the screen after compilation .. By code below:- Imports System.Data Imports...
5
2757
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
6
1151
by: needin4mation | last post by:
I have a set of textboxes. If it is a new record the textboxes are empty and there is a save button. If this is an existing record, I have a search form, a datagrid and the user selects form the...
2
6404
by: Nu2ASP.NET | last post by:
What I am trying to do is essentially 'flip' the bits, when the user clicks in the checkbox. For example, if the CheckBox appears checked, and the user un-checks it, I want the underlying data...
2
2060
by: Gummy | last post by:
Hello All, I have a webpage that has two dropdown listboxes. Based on what is selected in these dropdown listboxes, it filters a DataGrid . That works fine. In the DataGrid , when I go to edit...
4
2228
by: RoMo | last post by:
I am using VB .NET (2003) for a project that includes a datagrid on one form that allows the user to switch to details on a second form. The datagrid was built in design mode with all the proper...
5
2862
nmm32
by: nmm32 | last post by:
I have a DataGrid which displays data with the aid of a procedure. I have tested the procedure inside the database and it is working fine. I have another procedure which adds another row to the...
0
1763
by: cms3023 | last post by:
I have a DataGrid which displays data with the aid of a procedure. I have tested the procedure inside the database and it is working fine. The table inside the database has data that matches with...
0
1385
by: geeteshss | last post by:
the present problem is that i am unable to display data in datagrid....... but the data is visible in database..below is the code what should i do...earlier i could view it also below this code is...
1
1261
by: geeteshss | last post by:
unable to view data in datagrid -------------------------------------------------------------------------------- the present problem is that i am unable to display data in datagrid....... but...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7432
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
5676
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
5077
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
4743
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
3230
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
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
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.