473,326 Members | 2,010 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,326 software developers and data experts.

Add additional row

Hello,

I need to add an additional row for each exisitng row in
my datagrid. How can I do that?

Thanks
Nov 19 '05 #1
5 1143
you could try to add it when the DataList.ItemDataBound Event is called

http://msdn.microsoft.com/library/de...boundtopic.asp

or try to use a templatecolumn

http://aspnet.4guysfromrolla.com/articles/021203-1.aspx

the addRow method typically adds a row to the end of teh datagrid followin g
a bind event, so you may have to intercept this and see if theres anyhting
you can do. I suppose it depends on what you actually want the extra row
for.
--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Vishal" <an*******@discussions.microsoft.com> wrote in message
news:56****************************@phx.gbl...
Hello,

I need to add an additional row for each exisitng row in
my datagrid. How can I do that?

Thanks

Nov 19 '05 #2
Well, I am using a datagrid and I have to stick to that. I
need the addtional row for each existing row, so the 4Guys
article doesnt help me. The additional row will be used to
place a nested datagrid. I hope you can help me out.

Thanks
-----Original Message-----
you could try to add it when the DataList.ItemDataBound Event is called
http://msdn.microsoft.com/library/default.asp? url=/library/en-
us/cpref/html/frlrfsystemwebuiwebcontrolsdatalistclassitemd
ataboundtopic.asp
or try to use a templatecolumn

http://aspnet.4guysfromrolla.com/articles/021203-1.aspx

the addRow method typically adds a row to the end of teh datagrid followin ga bind event, so you may have to intercept this and see if theres anyhtingyou can do. I suppose it depends on what you actually want the extra rowfor.
--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Vishal" <an*******@discussions.microsoft.com> wrote in messagenews:56****************************@phx.gbl...
Hello,

I need to add an additional row for each exisitng row in
my datagrid. How can I do that?

Thanks

.

Nov 19 '05 #3
Take a read through the article below, its by some of the best asp.net
people and focusses specifically on nested datagrids, the example on nesting
a datagrid within a template column might be what your after or at least
given you an insight into building on that.

http://www.quepublishing.com/article...?p=173410&rl=1

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Vishal" <an*******@discussions.microsoft.com> wrote in message
news:56****************************@phx.gbl...
Well, I am using a datagrid and I have to stick to that. I
need the addtional row for each existing row, so the 4Guys
article doesnt help me. The additional row will be used to
place a nested datagrid. I hope you can help me out.

Thanks
-----Original Message-----
you could try to add it when the DataList.ItemDataBound

Event is called

http://msdn.microsoft.com/library/default.asp?

url=/library/en-
us/cpref/html/frlrfsystemwebuiwebcontrolsdatalistclassitemd
ataboundtopic.asp

or try to use a templatecolumn

http://aspnet.4guysfromrolla.com/articles/021203-1.aspx

the addRow method typically adds a row to the end of teh

datagrid followin g
a bind event, so you may have to intercept this and see

if theres anyhting
you can do. I suppose it depends on what you actually

want the extra row
for.
--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Vishal" <an*******@discussions.microsoft.com> wrote in

message
news:56****************************@phx.gbl...
Hello,

I need to add an additional row for each exisitng row in
my datagrid. How can I do that?

Thanks

.

Nov 19 '05 #4
No, I already know this article. They are adding the
nested datagrid in a new column, not in a new row.

-----Original Message-----
Take a read through the article below, its by some of the best asp.netpeople and focusses specifically on nested datagrids, the example on nestinga datagrid within a template column might be what your after or at leastgiven you an insight into building on that.

http://www.quepublishing.com/articles/article.asp? p=173410&rl=1
--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Vishal" <an*******@discussions.microsoft.com> wrote in messagenews:56****************************@phx.gbl...
Well, I am using a datagrid and I have to stick to that. I need the addtional row for each existing row, so the 4Guys article doesnt help me. The additional row will be used to place a nested datagrid. I hope you can help me out.

Thanks
>-----Original Message-----
>you could try to add it when the DataList.ItemDataBound

Event is called
>
>http://msdn.microsoft.com/library/default.asp?

url=/library/en-
us/cpref/html/frlrfsystemwebuiwebcontrolsdatalistclassitemd ataboundtopic.asp
>
>or try to use a templatecolumn
>
>http://aspnet.4guysfromrolla.com/articles/021203-1.aspx
>
>the addRow method typically adds a row to the end of teh
datagrid followin g
>a bind event, so you may have to intercept this and see

if theres anyhting
>you can do. I suppose it depends on what you actually

want the extra row
>for.
>--
>Regards
>
>John Timney
>ASP.NET MVP
>Microsoft Regional Director
>
>"Vishal" <an*******@discussions.microsoft.com> wrote in

message
>news:56****************************@phx.gbl...
>> Hello,
>>
>> I need to add an additional row for each exisitng

row in >> my datagrid. How can I do that?
>>
>> Thanks
>
>
>.
>

.

Nov 19 '05 #5
If you need to add related data in a nested fashion, take a look at this
free code:

HierarGrid - A hierarchical DataGrid that displays master-detail relations

http://www.denisbauer.com/ASPNETCont...ierarGrid.aspx
"Vishal" <an*******@discussions.microsoft.com> wrote in message
news:56****************************@phx.gbl...
Hello,

I need to add an additional row for each exisitng row in
my datagrid. How can I do that?

Thanks


Nov 19 '05 #6

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

Similar topics

1
by: Terry | last post by:
Problem: ========= Unknown column appearing in federated tables. Description: ============ Local database (L) is an established 'federated' database, extracting values from multiple remote...
6
by: Sebi | last post by:
Hello all, I'm thinking about overwriting the ListItem, so it can contain x additional values (not only one). Has anybody ever tried this? Has someone got an example (C#)? Can DropDownList...
3
by: Rich | last post by:
Hello, I have been using OneClick deployment to deploy apps at my workplace. Works great! But now I have to deploy additional files with the app, like chms, rtfs. How do I publish the...
6
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project...
0
by: Gary | last post by:
I'm having trouble entering Additional Registry Keys into my Package Solution that will deploy the Access 2007 runtime. (Client machine is running XP with Office 2007 Standard.) The Package...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.