Home All Groups Group Topic Archive Search About

Adding empty rows to DataGridView that is bount to DataTable

Author
11 Sep 2006 2:08 PM
lgalumbres@gmail.com
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!

Author
11 Sep 2006 10:27 PM
Ken Tucker [MVP]
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
-----------------------
<lgalumb***@gmail.com> wrote in message
Show quoteHide quote
news:1157983700.675190.235990@i3g2000cwc.googlegroups.com...
> 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!
>