468,537 Members | 1,844 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,537 developers. It's quick & easy.

Adding empty rows to DataGridView that is bount to DataTable

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!

Sep 11 '06 #1
1 3053
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
-----------------------
<lg********@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.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!

Sep 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Niels Jensen | last post: by
1 post views Thread by Luca Beretta | last post: by
6 posts views Thread by =?Utf-8?B?TU1TSkVE?= | last post: by
1 post views Thread by JustinD30324 | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.