Click here to Skip to main content
15,029,958 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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..

1 solution

Use AddHandler statement after you bind data to datagridview instead of assigning event in form design.
dcba1 31-Jan-13 1:41am
Not understood what you are saying. Where to add addhandler?
dcba1 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)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900