Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to add the single eventhandler for the multiple columns in gridview. How can I add this can any one help me to solve this issue.


Thanks in advance
Posted

1 solution

VB
For i as Integer = 0 to Gridview1.Columns.Count - 1
  AddHandler Gridview1.Columns(i).PropertyChanged, AddressOf Column_PropertyChanged(sender as Object,e as PropertyChangedEventArgs) 
Next


You need to define a common handler
VB
Public Sub Column_PropertyChanged(sender as Object,e as PropertyChangedEventArgs) 
 
Share this answer
 
v2

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