Adding empty rows to DataGridView that is bount to DataTable

  • Thread starter Thread starter lgalumbres
  • Start date Start date
L

lgalumbres

Hi,

I have a datagrid on Winform that is bound to a datatable. In essence,
what I would like to do is that when a user inputs a number into a
textbox control for example 5 then 5 empty rows will appear in the
datagrid.

any ideas?

Im fairly new to vb.net and Ive been reading that manipulating a bound
datagrid is not possible so idea is to add the empty rows to the
datatable. Is this true?

Thanks in advance!
 
Hi,

Yes add empty rows to the datatable. The datagridviews rownumber
property can be used to set the number of row shown when the datagridview is
unbound.

Ken
 
Back
Top