Click here to Skip to main content
11,789,706 members (60,003 online)
Rate this: bad
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

1 solution

Rate this: bad
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.
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 OriginalGriff 999
1 Maciej Los 765
2 KrunalRohit 686
3 CPallini 606
4 Richard MacCutchan 430

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