Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 8th, 2006, 12:43 PM
Authorized User
 
Join Date: Aug 2006
Location: delhi, delhi, India.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to KamalRaturi Send a message via Yahoo to KamalRaturi
Default Can we add same gridview in Placeholder Control

hi Forumers

Can we add same gridview with templatefied(Diffrent results in Same fields), multipletimes in placeholder. for example:


-------------------------------------------------------
PlaceHolder
-------------------------------------------------------
Gridview1 Fields: A, B, C, ckBox | Value: john,street1,56756,(ckbox)
-----------------------------------------------------
Gridview2 Flds(same):A,B,C,ckBox | Value: paul,street2,43234,(ckbox)
-------------------------------------------------------
and so on at runtime. __________________________________________________ __________________

Is it possible, or another way If U know to do this?
The Solution of above problem is very Important for me ,please reply soon.

Thanks.
  #2 (permalink)  
Old November 10th, 2006, 07:10 AM
Authorized User
 
Join Date: Aug 2006
Location: delhi, delhi, India.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to KamalRaturi Send a message via Yahoo to KamalRaturi
Default

hi,
 I try to code the Problem what it is :
------------------------------------------------------------------
abc.Aspx page having a Gridview "gdStudent"

--------------------------------------------------------------------
For i = 0 To 1
            Dim GridView1 As New GridView
            GridView1 = gdStudent
            GridView1.ID = "g" & i
            rdr1 = ComVersion1.Paper1.fnGetDetails("Student"&i, nStatus, sErr)
            GridView1.DataSource = rdr1
            GridView1.DataBind()
            'MsgBox(GridView1.ID.ToString)
            If i = 0 Then
                PlaceHolder1.Controls.Add(GridView1)
            Else
                PlaceHolder1.Controls.AddAt(i, GridView1)
            End If
        Next
--------------------------------------------------------------------

Output always shows only Single gridview.
--------------------------------------------------------------------
  #3 (permalink)  
Old November 10th, 2006, 10:07 AM
Authorized User
 
Join Date: Nov 2006
Location: Bristol, TN, USA.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to davidrodrigues40
Default

What is it you are attempting to accomplish with 2 gridviews if the format is the same on both?

David Rodrigues
"There is no box"
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add new subtotal column to GridView VB nomo ASP.NET 2.0 Basics 2 March 11th, 2014 01:36 AM
How to put a button control in a GridView control ryan.webb ASP.NET 2.0 Basics 2 December 28th, 2007 05:26 AM
How to add a new column into gridview? Bryan Stanley ASP.NET 2.0 Basics 0 September 12th, 2007 10:49 PM
How to add conditional link to GridView? asp_convert General .NET 1 February 9th, 2007 02:38 AM
Problem with: Add new record in GridView kalchev ASP.NET 2.0 Basics 0 April 26th, 2006 07:59 AM



All times are GMT -4. The time now is 12:36 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.