Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expanding grid and header events

Status
Not open for further replies.

florindaniel

Programmer
Dec 4, 2009
120
RO
Hello,

I have this situation: a grid with variable number of columns, depending of some configuration variables.
OK, I've meneged to dynamically add columns and bind them
to table fields.
What I need is to attach code to the RightClick event for the headers of the added columns. I've done something using BindEvent but in myRightClick I don't have acces to the object wicht triggered the event (and I need that).

What I am trying to do is to have for each new column a RightClick wich applies some custom defined filter on the field specified in the DataSource of the column

Thank you
Daniel
 
Got it (I hope)

I've defined some MyHeader class including myRightClick
etc..., as described in Mike gagnon's faq2164
"Adding procedures at runtime for grid objects"

Thank you Mike :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top