Hi,
In a form Form13.cs I have defined a function load which retrieves some info from the database as below
public
void load()
{
string ret = string.Format("select partyid, firstname, lastname, middleinit as minit, city, state, mobilephone, emailid, address, zipcode, ssn, homephone, workphone, employer from responsibleparty");
DataTable dt1 = new DataTable();
dt1 = obj.gettable(ret);
dataGridView1.DataSource = dt1;
obj.closecon();
for
(int i = 0; i < (dataGridView1.Rows.Count-1); i++)
{
dataGridView1.Rows[i].Cells[0].Value =
"Delete";
dataGridView1.Rows[i].Cells[1].Value =
"Update";
}
}
now I want to use this function in another form Forn42.cs. How to call this function in Form42.cs
thanks