Hi!
I have a problem i hope someone can help me with:
I have a dgv which datasource is a dataset. these are in the MainForm
I have another form (form2) in which the user chooses the index of row to delete and accepts, closing the form2
so... how can i get that value in the Main once the form2 is closed. so that i can delete the row from the dataset?
Any Help will be appreciated! ;)

Nitin SontakkeRank #264 · 9.6K reputationPosted Jul 8, 2016, 8:50 PM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Jul 8, 2016, 10:00 PM EDT
kalu singh raoRank #884 · 2.4K reputationPosted Jul 8, 2016, 10:11 PM EDT
{
if(sender is Form)
{
this.Hide();
varform2=newForm2();
form2.Closed+=(s,args)=>this.Close();
form2.Show();
}
}