Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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
dcba1890

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 at 31-Jan-13 1:41am
   
Not understood what you are saying. Where to add addhandler?
smiths3 at 31-Jan-13 1:42am
   
i want datgrid to be filled at the time of laoding. and selection change event after form loading..
Raimis9 at 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
0 Sergey Alexandrovich Kryukov 458
1 OriginalGriff 344
2 George Jonsson 233
3 Animesh Datta 130
4 Shemeemsha RA 128
0 OriginalGriff 6,179
1 Sergey Alexandrovich Kryukov 5,616
2 CPallini 4,770
3 George Jonsson 3,400
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2014
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