Datagrid: show new record row

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am new to .net. I believe this is a silly question.

When I link a datasource, such as an array, to datagrid, I don't see the new
record row at bottom of the grid. But when I linke datagrid to dataset, I can
see it. Why is that? Can I programmingly control when to show it?

Thanks,

Karl
 
Hi Karl,

To control whether the grid displays the "new record" row, your data source
must implement the IBindingList interface. The AllowNew and AllowRemove
properties of this interface control the grid's appearance and behaviour.
 
Back
Top