Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win DataGrid not responsive to general events?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00930361
Message ID:
00930387
Views:
13
Stephen,

>Win Form that is a part of a OakLeaf.MM.Main.Windows.Forms.mmMaintenanceForm.
>
>I have both a mmDataGrid and a dataGrid on a form, I can't seem to capture an event _Click, _Navigate,....
>
>this code fails to show in the debugger in this form but does in a plain form out of this project:
>
>private void dataGrid1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
>
>{
> System.Drawing.Point pt = new Point(e.X, e.Y);
> DataGrid.HitTestInfo hti = dataGrid1.HitTest(pt);
>
> if(hti.Type == DataGrid.HitTestType.Cell)
>
> {
> dataGrid1.CurrentCell = new DataGridCell(hti.Row, hti.Column);
>
> dataGrid1.Select(hti.Row);
> }
>}
>
>I give up. why can't you grab what is happening in the mmMaintenanceForm?

There's nothing special in an mmMaintenanceForm that would prevent this handler from executing. Are you sure your event registration code is in place? The best way to do create an event handler is via the VS .NET Property Window:

  • Select the DataGrid in design mode

  • Select the Property Window and click the Events button (the lightning bolt)

  • Double-click the event you want to create a handler for

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform