Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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.
 
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.
--------------------------------------------------------------------
 
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"




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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.