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

About expandible row in asp.net gridview

2
I have a grid view with 100 rows like this:
ID Name Day Activity
1 Carl Monday Clean
1 Carl Tuesday Run
2 John Monday Visit family
2 John Wednesday Landscape
2 John Friday Hang out with friends
3 Amy Saturday Visit salon
...
I would like to display only the first row per each Person(id) and to have a button(+/-), something like this:

ID Name Day Activity
+ 1 Carl Monday Clean
+ 2 John Monday Visit family
+ 3 Amy Saturday Visit salon

now when the user clicks on the "+" button, the grid expands all the information related with that user, for example:

ID Name Day Activity
- 1 Carl Monday Clean
Tuesday Run
+ 2 John Monday Visit family
+ 3 Amy Saturday Visit salon

How can I achieve this??
Apr 22 '15 #1
2 2022
zmbd
5,501 Expert Mod 4TB
Is this what you are after?
ASP.NET TreeView Web control
Apr 22 '15 #2
jen85
2
Thanks for your answer!!!!!!
I would like to use the hierarchy, but since I have columns, I don't think thas the best option
ID | Name | Day | Activity
+ 1 Carl Monday Clean
+ 2 John Monday Visit family
+ 3 Amy Saturday Visit salon

I'm looking for something like gridview with expandables columns or groupable columns.
Apr 22 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Steve | last post by:
When coding in vbscript asp, I did everything from scratch and could control the way that for example my data tables looked and could be edited. I for example could allow the user to delete...
1
by: Oren | last post by:
hi all, I have a GridView with his ObjectDataSource. It has a "SelectMethod" and some templates columns which has some javascript functions. How can I Update all rows after changing some...
2
by: mike | last post by:
Hi, I have surfed through several posting about exporting gridview to excel and it works great. using the following code... response.Clear() response.ContentType = "application/vnd.ms-excel"...
0
by: Ben | last post by:
Hi, It's about a database containing (for simplifying) three fields: 'placenr' (primary key), 'place' and 'color'. The records are updatable (Edit/Update button) in a gridview. For updating the...
5
by: Yossi | last post by:
I have a grid view with several text columns and 2 button columns. How do I tell which button on which row was clicked?
3
by: Richard Coltrane | last post by:
Hello Im reading this article about the Gridview: http://msdn.microsoft.com/msdnmag/issues/04/08/GridView/ Whilst I realise that im not forced to use their methods I do find it confusing...
0
by: mtembene | last post by:
I am new to this Mobile Web development and am having an issue that I would like some help with. I have a Mobile Web form that contains a DeviceSpecific object. In the Header Template for this...
5
by: Randy Smith | last post by:
Hi ALL, I wonder if anyone has been using n-tier to bind to a GridView control by using the ObjectDataSource. This is our first OOP web application, and we have no tables. Right now we are...
0
by: Adam Sandler | last post by:
Hello, My codebehind builds a GridView at runtime and shovels the data off as a part of a callback... Dim returnstring As String = String.Empty Dim gv As New GridView gv.DataSource = ds...
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
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.