Solved

DataGridView Data Bound Changes

Posted on 2011-02-17
5
335 Views
Last Modified: 2012-08-14
I want to make changes while DataGridView is populated. (the code in Windows VB 2008)
When I use Web I use the following function:
Private Sub DataGrid2_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid2.ItemDataBound

What is the syntax for DataGridView in Windows VB
0
Comment
Question by:CompGenHosp
  • 2
  • 2
5 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 34915961
do u mean in winforms?
0
 

Author Comment

by:CompGenHosp
ID: 34916114
Yes
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34916135
The RowsAdded event of the DataGridView serves the same purpose.
0
 

Author Comment

by:CompGenHosp
ID: 35037339
Do you have an example of the code/function? Thanks
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 35038060
It depends what you need to do from that event. But there is a very simple example of handling the event here:

    http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.rowsadded.aspx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

895 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

15 Experts available now in Live!

Get 1:1 Help Now