Click here to Skip to main content
12,510,836 members (50,375 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
I want to execute datagridview selected row change event only after form loading. At the time of form loading I have bind data to datagridview. When data is inserting in datagridview datagridview selected row change event is executed each time. I dont want it on form loading. only after form loading..
Posted 30-Jan-13 18:40pm
dcba1894

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Use AddHandler statement after you bind data to datagridview instead of assigning event in form design.
  Permalink  
Comments
smiths3 31-Jan-13 1:41am
   
Not understood what you are saying. Where to add addhandler?
smiths3 31-Jan-13 1:42am
   
i want datgrid to be filled at the time of laoding. and selection change event after form loading..
Raimis9 31-Jan-13 2:18am
   
I can't tell where exactly to put statement, because you didn't paste your code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100