Assuming I'm asking the right question, you have a form with a ListView, and when you open this form when it opens, you create 100 employee instances in that first step.
Start with a list of Employee arrays.
List<Employee> EmployeeList = new List<Employee>();
Fill out this list when loading the form.
private void Form1_Load(object sender, System.EventArgs e)
{
for(int i = 0; i < 100; i++)
{
EmployeeList.Items.Add(new Employee());
}
ListView.ItemSource = EmployeeList;
}
If you update EmployeeList and update the list, it should update it with the changed information.
source
share