private void btnBack_Click(object sender, EventArgs e)
{
//if(Convert.ToString(dgvCollateralSearchAccountResults.SelectedRows[0].Cells[0].Value)
this.Hide();
CollateralWelcome CW = new CollateralWelcome();
CW.Show();
//pnlSearchResults.Show();
//pnlSearch.Show();
}
With this piece of code I am able to go back but one condition is there like if user select any records from
dgvCollateralSearchAccountResults ,Back Button should be disabled.
Please suggest me

Arnab MukherjeeRank #879 · 2.5K reputationPosted May 12, 2021, 11:40 PM EDT
Ruchi SharavatRank #1,714 · 885 reputationPosted May 13, 2021, 12:48 PM EDT