how to add a new entity object on DataGridView in the client side? RRS feed

  • Question

  • Hi,

    I am using self tracking in wcf.

    In the client side, I have a DataGridViewon a win form.  I set DataGridView1.datasource = customers (customers is List<Customer> retrived from service. customers is in fact a list of rows of customer database table).

    I want after, on the DataGridView, a user can press arrow down key or press enter key at the last column of the last row, the grid will add a new row at the buttom, then user can type in the values in the cells. so that the user click Save button, the new customer can be saved into database. So how can the grid add a blank new row?



    Tuesday, February 28, 2012 3:19 AM