Solved

Adding New Rows from Empty Template -> DataGridView

Posted on 2010-08-23
4
405 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now