473,405 Members | 2,445 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,405 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 2387
"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...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
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,...
0
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...

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.