5
Answers

Add multiple new rows to datagrid

mike Delvotti

mike Delvotti

10y
837
1
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)