i have datagridview whereby after searching record i press ok or hit enter it send that data to another datagrid in another form , how can i do that ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankaj Kumar ChoudharyPosted Jun 4, 2015, 5:49 AM
class Class1
{
protected DataTable Tab=new DataTable();
protected string Stu_Id;
protected void Send_Id( string Stu_Id)
{
// Write here query for retrive data from student fees_sturucture Table
SqlConnection Con =new SqlConnection();
SqlCommand Com = new SqlCommand("Select * From fees_sturucture where Stu_ID='" + Stu_Id + "'", Con);
SqlDataAdapter Da = new SqlDataAdapter();
Da.Fill(Tab);
}
protected DataTable Retrive_Data()
{
// Use this method for different form for retrive data from Table (Tab)
// Call this Method On Different’ Form_Load() event
}
}
Carlos kambuiPosted Jun 4, 2015, 5:36 AM
Pankaj Kumar ChoudharyPosted Jun 4, 2015, 5:15 AM