Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 July 18th, 2005, 07:25 AM
him him is offline
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Display array object of class in WebGrid ?

hi

am having a class which consist property of type another class

for eg:

Public Class AA
{
  private string add;
  private BB Name;
public string Add
{
    get{return add;}
    set{add=value;}
}
public TestA Name
{
    get{return name;}
    set{name=value;}
}

}

public Class BB
{

   private string name;
   private int id;

   public string Name
        {
            get{return name;}
            set{name=value;}
        }
        public int ID
        {
            get{return id;}
            set{id=value;}
        }
}

so if my webgrid is abc then
AA[]aa=new AA[2];

...
assiging of values...

abc.DataSource=AA

however in this case my BB values does not get Display

so if you guys have some solution then Please do let me know

thanks.


Enjoy Programming





Similar Threads
Thread Thread Starter Forum Replies Last Post
return more then one array from class file Komila ASP.NET 2.0 Basics 4 June 27th, 2007 07:10 PM
Get and Display Array shah123 C# 3 March 27th, 2007 09:23 AM
display my database in an array knightneo PHP Databases 2 December 3rd, 2006 01:25 AM
infragistic webgrid control sanjeev_seelam ASP.NET 2.0 Basics 3 October 3rd, 2006 10:09 AM
Accessing an array in a class James Diamond Pro VB 6 1 May 7th, 2004 01:18 PM





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