Solved

DataGridView Data Bound Changes

Posted on 2011-02-17
5
343 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 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