-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: thinkindotnet
Message 1 in Discussion
Hi folks, I have a class like below. public class MyData
{
string _name="";string _address="";
public MyData(string name, string address)
{
_name = name;
_address = address;
}
public string Name
{
get{return _name;}
set{_name = value;}
}
public string Address
{
get{return _address;}
set{_address = value;}
}
}
I create instance of it and add it to the arraylist and binding it with a datagrid as
below
ArrayList arList = new ArrayList();
arList.Add(new MyData("first","ab"));
arList.Add(new MyData("second","cd"));
dgArrayList.DataSource = arList;
After binding like this, I get the datagrid with 2 rows of data. I want to add one
more row through the datagrid.
Now the question is, how to add new row in the datagrid so that I can enter new row
like "third" and "ef" in the datagrid and it will be put into the arraylist.
Thanx in advance,
Suki
-----------------------------------------------------------
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]