Hello,
On my for i have 4 DataGridView,
In click on the first dgv1 the other tree are populated with data, works fine only when are record to display.
So,
When i change selection for dgv1, but the rest 3 dgv has info on my fist selection and the second selection has no record for the second dgv2, the dgv3 and dgv4 has record from the first selection.
What event to use for update dgv2, dgv3, dgv4,
dgv2 is updated based on dgv1 - this is OK
dgv3, dgv 4 based on dgv2 - this NOT
private void dgv2_SelectionChanged(object sender, EventArgs e)
{
if (dvContracte.SelectedRows.Count > 0)
{
int nrContractCautat = Convert.ToInt32(dvContracte.SelectedRows[0].Cells[0].Value.ToString());
if (nrContractCautat != 0)
{
ProduseContract[] produseContract = InterogariDB.produseContract(nrContractCautat);
dataConProduse.DataSource = produseContract;
this.dataConIstoric.DataSource = InterogariDB.IncarcaIstoricContracte(nrContractCautat);
}
}
}