473,287 Members | 3,319 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,287 software developers and data experts.

GridView with multiple selects

Hi guys,

I hope you can pointing me some tutorials or examples to:

in a Gid View I want to have:

first Row: [Serial Number]
next rows |---> 4 columns that I get from a select with the
serial number above
next row: [Serial Number]

next rows |---> 4 columns that I get from a select with the
serial number above
...

I can do this with 2 GridViews (one with the serial, and the other with the
select)
But only for One Serial Number - I want to reapeat this n times as the
serial numbers that the user enteres in a search...

How can I accomplish this?

(Can I have everything in just one GV like we had it in a table using
Classic ASP)
--

Bruno Alexandre
(a Portuguese in Denmark)

May 15 '06 #1
2 2386
"Bruno Alexandre" <br*******@filtrarte.com>'s wild thoughts
were released on Mon, 15 May 2006 15:20:24 +0200 bearing the
following fruit:
Hi guys,

I hope you can pointing me some tutorials or examples to:

in a Gid View I want to have:

first Row: [Serial Number]
next rows |---> 4 columns that I get from a select with the
serial number above
next row: [Serial Number]

next rows |---> 4 columns that I get from a select with the
serial number above
...

I can do this with 2 GridViews (one with the serial, and the other with the
select)
But only for One Serial Number - I want to reapeat this n times as the
serial numbers that the user enteres in a search...

How can I accomplish this?


If you trap the RowDataBound event, you can then do what you
want with the data in that row, even fire off another SQL to
get the data you want. Seems like a pretty resource
intensive thing to do though, can't it be achieved in one
SQL?


Jan Hyde (VB MVP)

--
Philistine: What a German bartender does. (Robert E. Lewis)

May 16 '06 #2
may be ... but don't know how :-(
I will put a post in SQL NG asking 4 there help.

thank you for the ideia

--
Bruno Alexandre
..

"Jan Hyde" <St***********@REMOVE.ME.uboot.com> escreveu na mensagem
news:ec********************************@4ax.com...
"Bruno Alexandre" <br*******@filtrarte.com>'s wild thoughts
were released on Mon, 15 May 2006 15:20:24 +0200 bearing the
following fruit:
Hi guys,

I hope you can pointing me some tutorials or examples to:

in a Gid View I want to have:

first Row: [Serial Number]
next rows |---> 4 columns that I get from a select with
the
serial number above
next row: [Serial Number]

next rows |---> 4 columns that I get from a select with
the
serial number above
...

I can do this with 2 GridViews (one with the serial, and the other with
the
select)
But only for One Serial Number - I want to reapeat this n times as the
serial numbers that the user enteres in a search...

How can I accomplish this?


If you trap the RowDataBound event, you can then do what you
want with the data in that row, even fire off another SQL to
get the data you want. Seems like a pretty resource
intensive thing to do though, can't it be achieved in one
SQL?


Jan Hyde (VB MVP)

--
Philistine: What a German bartender does. (Robert E. Lewis)

May 16 '06 #3

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

Similar topics

0
by: Stephen | last post by:
My primary GridView is firing an OnDataBound after Selecting a row (which triggers SelectedIndexChanged). This only happens in the following scenario: - User enters a textbox search value and...
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: Kyle K. | last post by:
I would like to build my data pages such that the top of the page contains a GridView showing the data with 'Enable Select = true'. Below that I would like to have a FormView, that by default is...
4
by: bryan | last post by:
Hi all, I am working on a .net 2.0 web app. On page load I display a gridview with a drop down list (Employees), when the user selects from the drop down list, the grid view is filled with...
0
by: satchi | last post by:
Hi, I'm having trouble figuring out how to conditionally bind a GridView to an sqldatasource depending on the user's input to a TextBox and selecting the field to search by, in a DropDownList...
1
by: Dev147 | last post by:
I need to dynamically create a GridView that contains a variable number of columns that must be bound to an underlying collection in an entity class. These columns represent days from a specified...
0
by: sharonrao123 | last post by:
hello all, I have a parent gridview company and in this one a nested gridview people, Is it possible to allow the user to select one row or multiple rows from the people gridview using a check box...
7
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
Is there a way to use a gridview in a timecard application, and if so, how? I was looking at using a gridview to display a person's hours worked in a week. To do this, many different data records...
2
by: Michael | last post by:
It seems that a gridview allows us to delete only a single row at a time. How to extend this functionality to select multiple rows and delete all of the selected rows in a single stroke? just like...
0
by: =?Utf-8?B?QVZM?= | last post by:
Hi I want to implment cusotm sorting in gridview... Ive a dropdown box on my page where ive all the fields(columsn) to be sorted.. whenever hte user selects the value in the dropdown , the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.