Good morning,
I wanted to know the best way to refresh a grid after making a change to one of the elements in an edit window.
I have a grid with lets say employees. I pass the employee as reference to the edit window...
EmployeeEdit wEdit = new EmployeeEdit(ref selectedEmployee);
wEdit.Show();
If I delete this employee and come back to the main grid, that employee is still there because the grid has not refreshed (I dont want to do a showdialog).
I was thinking about passing a variable as reference and changing that variable upon deleting an employee. Then, when the original grid got focus, check the variable and refresh the grid if I have to.
This seems like a rigged fix and I wanted to know the most efficient way to do this.
Thank you