"JJ" <JJ@discussions.microsoft.com> wrote in message news:AB**********************************@microsof t.com...
The datagrid is nice and I do use it but I need to be able to customize it
for other events to occur with it.
Sure, have you tried subclassing the DataGrid?
1. it is databound and 2. create my own events for it?
DataGrid comes databound already, which saves you a hairy furball of
coding. :-)
Adding events is as simple as adding new fields typed as the Event-
Handler, declaring the event publicly (or internally), and writing a
method to invoke the event if it has any EventHandlers attached to
it. See this MSDN Library article for more information on adding
events,
http://msdn.microsoft.com/library/li...mcomponent.asp
Override the DataGrid's virtual (overridable) methods to fire your
additional events at the right times during the control's lifecycle. If
you override these methods then just remember to always call the
base class' implementation of that method (before or after your
override does it's stuff, depending on the timing that you're going
for.)
Derek Harmon