473,387 Members | 1,678 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,387 software developers and data experts.

Datagrid how-to question

I have a datagrid that I want to put sku information into.

I can load the select info there, such as:

Item# Description Weight etc.

However, in the right hand column, or maybe to the right of the datagrid,
I'd like to have a hyperlink displayed that would give me more specific
information than what I have space to show in the datagrid. An alternative
may be to have the user to click on the item number to display this info.

For instance, Say if they click on the "more info" link to the right of the
table (or the sku number) - I'd want to display maybe the UPC number, a case
quantity or something like that.

In doing this, I'd like to have the item roll up what's not clicked (i.e.
all the items above & below it), and display the "more info" in maybe a
datagrid below this one. A click on the item number (or more info link)
would restore the selections.

Any ideas?

Thanks,

Steve
Nov 18 '05 #1
2 1418
"Steve Chatham" <me@privacy.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
However, in the right hand column, or maybe to the right of the datagrid,
I'd like to have a hyperlink displayed that would give me more specific
information than what I have space to show in the datagrid. An alternative may be to have the user to click on the item number to display this info.
Is this similar to what you want:
http://devx.mag37.com/dev/cswo/ProductTable.aspx
(full source code:)
http://devx.mag37.com/dev/cswo/cswo.zip
(note the use of url rewriting to make the item pages redirect to
Product.aspx?item=)

I just have a hyperlink to a separate page with all the additional
information.
In doing this, I'd like to have the item roll up what's not clicked (i.e.
all the items above & below it), and display the "more info" in maybe a
datagrid below this one. A click on the item number (or more info link)
would restore the selections.


Now I'm not so certain as to what you mean...That last paragraph doesn't
make much sense to me.

By "roll up" do you mean hide all the rows except for the single row that
was clicked for more info?

And "restore the selections" - do mean just to reshow all the rows of the
main datagrid?

You could pretty easily mimic this by having the hyperlink send you to the
same page with a querystring of, say, the sku #. If the page is loaded with
that sku #, you could bind the main datagrid to a dataview with just the
single row filtered, and enable a second part of the page to show the
details. I did a quick mock-up of this - click on the first link at the top
of ProductTable.aspx
--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/

Nov 18 '05 #2
ben
you can instead also display the details in a new pop up window by
using template column in the datagrid...something like this

<asp:TemplateColumn HeaderText="SKU">
<ItemTemplate>
<a href='details_sku.aspx?ID=<%#
DataBinder.Eval(Container.DataItem,"ID")%>' target=_blank>
<%#DataBinder.Eval(Container.DataItem,"SKU")%>
</a>
</ItemTemplate>
</asp:TemplateColumn>

HTH,
Ben

"Steve Chatham" <me@privacy.net> wrote in message news:<#7**************@TK2MSFTNGP10.phx.gbl>...
I have a datagrid that I want to put sku information into.

I can load the select info there, such as:

Item# Description Weight etc.

However, in the right hand column, or maybe to the right of the datagrid,
I'd like to have a hyperlink displayed that would give me more specific
information than what I have space to show in the datagrid. An alternative
may be to have the user to click on the item number to display this info.

For instance, Say if they click on the "more info" link to the right of the
table (or the sku number) - I'd want to display maybe the UPC number, a case
quantity or something like that.

In doing this, I'd like to have the item roll up what's not clicked (i.e.
all the items above & below it), and display the "more info" in maybe a
datagrid below this one. A click on the item number (or more info link)
would restore the selections.

Any ideas?

Thanks,

Steve

Nov 18 '05 #3

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

Similar topics

1
by: amber | last post by:
I have a datagrid, based on a dataview (filled with dataset data from SQL server). The dataview contains an ID field, but this field isn't in the datagrid. How can I get the ID associated with...
3
by: KathyB | last post by:
Hi, Everything I see is geared toward editing data-centric information (from db tables, etc.) using datagrid, data islands, etc. Is it possible (and HOW?) to load an xmlDocument (using xsl...
3
by: Andrew Dodgshun | last post by:
I have 2 grids - one shows a list of table names in a database and when you click on a table name the other grid dynamically populates the grid with the table contents. My problem is that I cannot...
6
by: BBFrost | last post by:
I'm using Net 1.1 (2003) SP1 & Windows 2000 Here's the issue ... Rows 12 thru 24 are selected in a datagrid. The user now unselects rows 12 thru 24 and selects rows 45 thru 70 ??? How can...
0
by: TT (Tom Tempelaere) | last post by:
Hi, How can I know if a cell in a DataGrid is being edited? Thanks, -- Tom Tempelaere.
3
by: Chuen | last post by:
Hi, I hope that only part of field in dataset can be displayed in DataGrid, how can I do it? DataGrid in vb.net is quite different from DataGrid in vb6, It seems that I can't find datagrid the...
5
by: John M | last post by:
Hello, In Visual studio .NET 2003, On datagrid object : How can I link the button element : edit, to do a some client events (such as message box, and do another event just after that to the...
1
by: Vili | last post by:
Hi all I have a datagrid with nested datagrid. How do I get event from dgNested button? I used example from...
1
by: tomcarr1 | last post by:
How do I set up date formating for a column in a DataGrid Web Control? I have one column in an ASP.Net data grid that contains a date. It is showing date and time, which I don't want. I only...
3
by: reidarT | last post by:
I have a datagrid with columns. One of the columns are a textbox. I want the text in this column shown in a textbox outside the datagrid. How can I do that when clicking the actual row in the...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.