mike Delvotti

mike Delvotti

  • NA
  • 262
  • 0

Add multiple new rows to datagrid

May 22 2014 8:22 AM
I'm trying to add more than one row in my bindingsource based on a number in a textbox.

For instance if textbox1 has a value of '50' and I click Add new row I want to prepare 50 new rows that can be populated in a datagrid then saved all in one go.

I'm using chequeBindingSource.AddNew(); to make 1 new row, but I would like to add as many new rows as the number in textbox1, is that possible?

Hope I've been clear.

Answers (5)