0

Hi!
i want ADD empty row in DataGridView............Like Thisc9c3e54a6d28a6b686c9dcd1954b1f77 !
When user enter Number in textbox and click button then Add empty rows(as per user input number in textbox) in DataGridView..........
for example :-
if user entered "5" in textbox and click button then "5" empty rows will be created........
Please Help As Soon As Possible:::: THANK YOU in ADVANCE

Edited by hhm_pro992

Attachments fff.png 12.11 KB
2
Contributors
2
Replies
10
Views
3 Years
Discussion Span
Last Post by hhm_pro992
0

Here's one way

For r As Integer = 1 To CInt(txtNumRows.Text)
    dgvMyGrid.Rows.Add(New DataGridViewRow)
Next

Edited by Reverend Jim

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.