• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 426
  • Last Modified:

Adding New Rows from Empty Template -> DataGridView


In VB.Net / VS 2005 - Windows App.

Adding New Rows from Empty Template -> DataGridView

Using Insert Template Option
0
chokka
Asked:
chokka
  • 3
1 Solution
 
John (Yiannis) ToutountzoglouInstructor Multiengine PilotCommented:
hi..
you can use subroutine Add
like
Dim n As Integer = DataGridView1.Rows.Add()
        DataGridView1.Rows.Item(n).Cells(0).Value = "something"
        DataGridView1.Rows.Item(n).Cells(1).Value = "something else"
    End Sub

If your datagridview is databound then we are talking aboutadd rows to a datatable
0
 
John (Yiannis) ToutountzoglouInstructor Multiengine PilotCommented:
0
 
chokkaStudentAuthor Commented:
Its a complicated DataGridView..

It has 5 Columns ..!

In the 5th Column we need to have a ComboBox which is already populated from Database.


Column1,Column2,Column3,Column4 have to entered from the application

0
 
John (Yiannis) ToutountzoglouInstructor Multiengine PilotCommented:
you have already the datagridview and you want to pass values in a row ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now