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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Jun 4, 2015, 1:15 AM EDT
Carlos kambuiRank #2,642 · 528 reputationPosted Jun 4, 2015, 1:36 AM EDT
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Jun 4, 2015, 1:49 AM EDT
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
}
}