Datagrid: show new record row

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
 
G

Guest

The answer is simple
array size is fixed. so it will show only fixed amount of records
 
D

Dmytro Lapshyn [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top