Problem when binding Arraylist to DataGridView in windows Application

Discussion in 'C#' started by gul3436, Jan 28, 2008.

  1. #1
    I have created a class Employee with public properties like name, id, age, sex, address etc.

    now i want to show employees details in datagridview in a windows form.

    To bind the datagridview, i have created a Arraylist of Employee class objects.

    Problem is, DataGridView doesn't show the blank row, even though AllowUserToAddRows property of DataGridView is True. And i can't use any other collection, dataset or dataTable to bind the grid.
     
    gul3436, Jan 28, 2008 IP