Solved

Adding New Rows from Empty Template -> DataGridView

Posted on 2010-08-23
4
408 Views
Last Modified: 2013-11-27

In VB.Net / VS 2005 - Windows App.

Adding New Rows from Empty Template -> DataGridView

Using Insert Template Option
0
Comment
Question by:chokka
  • 3
4 Comments
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33506158
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
 
LVL 18

Accepted Solution

by:
John (Yiannis) Toutountzoglou earned 500 total points
ID: 33506260
0
 

Author Comment

by:chokka
ID: 33506652
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
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33508197
you have already the datagridview and you want to pass values in a row ?
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bound data table problem 2 33
SSRS Deployment problem 5 66
Where does legacy ASP.NET initialize language? 2 26
IDE for Python 5 23
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question