Hi,
I have .NET 3.5 Windows Forms application which contains several DataGridView controls. Application also contains class Item (represents price list item) and ItemCollection with implemented IEnumerable, IList interfaces.
dataGridView1 has set AllowUserToAddR ows property = true;
When I set DataSource:
[code=cpp]
dataGridView1.D ataSource = oInvoice.Items; //returns ItemCollection. .[/code]
there is no blank row for new record in dataGridView1.
When I set DataSource:
[code=cpp]
dataGridView1.D ataSource = oInvoice.GetIte ms(); //returns DataTable..[/code]
works everything fine, there is new blank row at end of dataGridView1 rows.
Any advices?
Thank a lot
I have .NET 3.5 Windows Forms application which contains several DataGridView controls. Application also contains class Item (represents price list item) and ItemCollection with implemented IEnumerable, IList interfaces.
dataGridView1 has set AllowUserToAddR ows property = true;
When I set DataSource:
[code=cpp]
dataGridView1.D ataSource = oInvoice.Items; //returns ItemCollection. .[/code]
there is no blank row for new record in dataGridView1.
When I set DataSource:
[code=cpp]
dataGridView1.D ataSource = oInvoice.GetIte ms(); //returns DataTable..[/code]
works everything fine, there is new blank row at end of dataGridView1 rows.
Any advices?
Thank a lot
Comment