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

Need advice on datagridview alternative

I have a web page that uses a DataGridView to display data from an SQL
database. I have added a lot more fields to the SQL database but don't want
to have have an extremely wide DataGrid.

What I'd like to do is have a listing of the basic information for each
record, then the user can click on a record to expand the detailed
information for that record.

I'd like to do this using native VWD components. I don't want to use any 3rd
party stuff. Can anyone give some advice on what can do this or how to do
it?

Thanks!
Sep 3 '06 #1
3 1719
Bob
You can get a full source here:
VB:
http://download.microsoft.com/downlo...Lesson08VB.msi
C#:
http://download.microsoft.com/downlo...Lesson08CS.msi
You can download all lesson's movies and example sources here :
http://msdn.microsoft.com/vstudio/ex...g/default.aspx
Something you need is lesson 8.

Good luck.

Terry Olsen wrote:
I have a web page that uses a DataGridView to display data from an SQL
database. I have added a lot more fields to the SQL database but don't want
to have have an extremely wide DataGrid.

What I'd like to do is have a listing of the basic information for each
record, then the user can click on a record to expand the detailed
information for that record.

I'd like to do this using native VWD components. I don't want to use any 3rd
party stuff. Can anyone give some advice on what can do this or how to do
it?

Thanks!
Sep 3 '06 #2
One of the options is to have the datagrid with all columns, both the basic
and the details, but to make only the basic visible. The details will be
hidden. You can have a separate panel on the form where you can place the
details for the currently selected row. You will need to write some
javascript to set the detail controls on the panel to the values of the
hidden columns.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Terry Olsen" <to******@hotmail.comwrote in message
news:um*************@TK2MSFTNGP05.phx.gbl...
>I have a web page that uses a DataGridView to display data from an SQL
database. I have added a lot more fields to the SQL database but don't want
to have have an extremely wide DataGrid.

What I'd like to do is have a listing of the basic information for each
record, then the user can click on a record to expand the detailed
information for that record.

I'd like to do this using native VWD components. I don't want to use any
3rd party stuff. Can anyone give some advice on what can do this or how to
do it?

Thanks!

Sep 3 '06 #3
Terry,
Probably the easiest way to handle this is to have the ID column displayed
with a Hyperlink control, which would point to either the same page with the
id on the querystring, or to a separate detail page (can be a popup window).
You would then use a second grid, DataList or similar control which would
accept the ID from the querystring and display complete details of the single
row - all fields, in a table.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Terry Olsen" wrote:
I have a web page that uses a DataGridView to display data from an SQL
database. I have added a lot more fields to the SQL database but don't want
to have have an extremely wide DataGrid.

What I'd like to do is have a listing of the basic information for each
record, then the user can click on a record to expand the detailed
information for that record.

I'd like to do this using native VWD components. I don't want to use any 3rd
party stuff. Can anyone give some advice on what can do this or how to do
it?

Thanks!
Sep 3 '06 #4

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

Similar topics

5
by: Peter | last post by:
How do I get DataGridViewCell cell position in a window? For a button I would do this: this.Button.PointToClient(this.Button.Location) But what do I do for DataGridViewCell? Thanks
2
by: mark carew | last post by:
Hi All DataGridView Users. I have noticed that there seems to be very little useful response to DataGridView questions in this news group. I have looked at the spanish, belgium, french, italian...
3
by: Rich | last post by:
Hello, I am populating a datagridview from a datatable and filtering the number of rows with a dataview object. Is there a way to retrieve the rows displayed by the datagridview into a separate...
2
by: Rich | last post by:
Hello, Following an example at http://www.vb-tips.com/dbpages.aspx?IA=DG (by Cor Lightert and Ken Tucker) on binding a dataRelation to a Datagridview for sqlClient, I was able to view rows...
3
by: martin1 | last post by:
rHi, All I knew cross-tab quesy is easy done on the Access DB, is there easy way to do cross-tab query for SQL server DB in VB.NET 2005 Dev environment? Thanks
0
by: James | last post by:
Hi, I have a project which displays a Select from a SQL Express DB via a dataset and datagridview. Now, I know how to sort the datagridview by column but what I really want is for the data shown...
2
by: ManjuG | last post by:
I want to serilaize the Columns and rows in a grid. As grid and columncollection from DataGridView are not serializable, the derive from the respecitive classes and implement ISerializable...
8
by: Izzy | last post by:
I'm writting an app that has two DataGridViews, in the first grid I load a list on companies. Between the 2 grids are two buttons with arrows, one points to the right the other to the left. When...
5
by: ElPresidente | last post by:
Now that I have your attention haha... I have this weekly file that contains several hundred invoices that need to be given batch letters in according to the following hierarchy. Employee...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.