Datagrid Header ButtonClick

  • Thread starter Alexander Herrmann
  • Start date
A

Alexander Herrmann

Hi there.
I got a customized DataGrid which columns are generated by 2 Classes that
inherit from DataGridColumn. Now I added an Button to the Header and want to
handle its click. My Problem now is to get the Buttons ArgumentName etc. in
my main class where I generate the DataGrid. How can I do this?
Thanks in advance..
 
W

Weston Weems

Somewhat unclear on what you are shooting for...

OnItemCreated, you can tell if e.ItemType =
ListItemType.header or whatever, then add objects and
event handlers that way...
 
A

Alexander Herrmann

Well, the problem is that the button you click is in another class than the
main class. And I have to handle the click event there, you know?
I could add an eventhandler in the DataGridColumn Class but then I have to
handle the event in this class but this I won't.
The DataGrid is placed in my main class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top