-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: DotNetRanji
Message 9 in Discussion

Sorry for the confusion, I will send the attachment to your personal id.

Your class should expose the access to its attributes using property get /
set methods  as below

        public class User
        {
                private int _UserID;
                private string _UserName;
                private string _EmailID;
                
                public int UserID {
                        set { _UserID = value;}
                        get { return _UserID;}

                }

                public string UserName {
                        set { _UserName = value;}
                        get { return _UserName;}

                }

                public string EmailID {
                        set { _EmailID = value;}
                        get { return _EmailID;}

                }

                public User(int id, string name, string email)
                {
                        _UserID = id;
                        _UserName = name;
                        _EmailID = email;
                }
        }

And it should not be like this.

        public class User
        {
                public int _UserID;
                public string _UserName;
                public string _EmailID;
                

                public User(int id, string name, string email)
                {
                        _UserID = id;
                        _UserName = name;
                        _EmailID = email;
                }
        }

Thanks,
Ranjith
 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
Ravisaidasan
Sent: Tuesday, October 25, 2005 5:11 PM
To: BDOTNET
Subject: Re: How to populate data to data grid from a data structure in
asp.net

-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Ravisaidasan
Message 8 in Discussion

Dear Ranjith     Pls check if you have defined all the attributes of you
classes with
Property Get, Set. If you have defined the attribute using Public then you
will not get those properties listed in the datagrid.   We are not clear
with the above description. please send the attachment to my personal mail
id : [EMAIL PROTECTED] or send the file contents with this .    Thanks in
advance   Thanks and Regards Ravi

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your
E-mail Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On
the pre-addressed e-mail message that opens, simply click "Send". Your
e-mail address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]




-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to