473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Gridview Row Select

Hi,

I've searched the forum to answers for my particular issue, but haven't
quite found anything that could help.

I have a gridview with three columns. A B and C. When a row is selected I
want to display data from the database based on the intersection of column A
and row selected.
" Select * from table where answer = row3/column A value ".

I was able to get the nested gridview to work, but I only want the detail to
show when the row is clicked on.

Thanks
--
Hutty
Jul 28 '06 #1
2 2100
See the articles on this link. There is article that described row click
event and displaying more data based on that click.

http://www.netomatix.com/datagridseries.aspx

"Hutty" <Hu***@discussions.microsoft.comwrote in message
news:CA**********************************@microsof t.com...
Hi,

I've searched the forum to answers for my particular issue, but haven't
quite found anything that could help.

I have a gridview with three columns. A B and C. When a row is selected I
want to display data from the database based on the intersection of column
A
and row selected.
" Select * from table where answer = row3/column A value ".

I was able to get the nested gridview to work, but I only want the detail
to
show when the row is clicked on.

Thanks
--
Hutty

Jul 28 '06 #2
Didn't see what I was looking for. Language there pretty much written in c++.
I have been able to the get the row/column intersection using
"row.Cells(1).Text". Now I need to query the database using the returned text
and displaying in another gridview. Something like this:

Select * From TABLE A where group_name = row.Cells(1).Text
--
Hutty
"Winista" wrote:
See the articles on this link. There is article that described row click
event and displaying more data based on that click.

http://www.netomatix.com/datagridseries.aspx

"Hutty" <Hu***@discussions.microsoft.comwrote in message
news:CA**********************************@microsof t.com...
Hi,

I've searched the forum to answers for my particular issue, but haven't
quite found anything that could help.

I have a gridview with three columns. A B and C. When a row is selected I
want to display data from the database based on the intersection of column
A
and row selected.
" Select * from table where answer = row3/column A value ".

I was able to get the nested gridview to work, but I only want the detail
to
show when the row is clicked on.

Thanks
--
Hutty


Jul 28 '06 #3

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

Similar topics

7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
4
by: ber.janssens | last post by:
Hi, In ASP.NET 2.0, I have a GridView with 2 CommandFields, how can I determine in the SelectedIndexChanged event which CommandField is clicked? <asp:GridView ID="gvOrderList" runat="server"...
1
by: Miguel Dias Moura | last post by:
Hello, I have a GridView in my page which is created in runtime. It works fine. My page has 2 Asp Buttons: - The HIDE button makes GridView.Visible = False; - The SHOW button makes...
6
by: Terry | last post by:
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...
2
by: antonyliu2002 | last post by:
I've been googling for some time, and could not find the solution to this problem. I am testing the paging feature of gridview. I have a very simple web form on which the user can select a few...
4
by: =?Utf-8?B?Y2hyaXM=?= | last post by:
I have a perent gridview which includes in a template field a child gridview. Child gridview includes command buttons for opening different windows based on its row selected. I used the code...
4
by: Don Miller | last post by:
This is a repost of a reproducible problem/bug with GridView with dynamic SQL and binding. Is there a better ASP.NET newsgroup I should post to where MS techs or MVPs take an interest in such...
4
by: mohaaron | last post by:
This seems like it should be simple to do but for some reason I have been unable to make it work. I would like to databind a SqlDataSource to a GridView during the click event of a button. This...
11
by: Ed Dror | last post by:
Hi there, I'm using ASP.NET 2.0 and SQL Server 2005 with VS 2005 Pro. I have a Price page (my website require login) with GridView with the following columns PriceID, Amount, Approved,...
0
by: =?Utf-8?B?ZWdzZGFy?= | last post by:
Hi, I have created a second gridview when customer clicks on select link with this code: Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.