25. March 2008

An amusing bout with the DataGridView control

As usual, WinForms GUI programming is a terrible PIA. Even worse is the flagship of all controls the great beast known as the DataGridView. Working with the DataGridView bends your mind like offensive cutlery at Uri Geller’s dinner table.

14. February 2008

Sharing Menu Items between ToolStrips on a Windows Form

So, you may have found yourself building a nice user-friendly, somewhat complicated Windows Forms application, that had lots of drop-down menus and right click context menus, and what not.. You may have naively assumed that you could share your menu items, so that you have a consistent set of options, icons, and more importantly event handlers for a particular menu item or set of menu items.

15. November 2007

ASP.NET Gridview SelectIndexChanged event not firing

If, you find yourself in the unfortunate position of having a dynamically created Gridview control in your ASP.NET page AND needing to handle the SelectedIndexChanged event… as I was, you may find yourself banging your head against the monitor trying to understand why the event isn't getting fired.

12. October 2007

Changing Visual Studio Item Templates

So, Visual Studio is pretty great right? It makes a lot of things really easy, really automated… saves a lot of typing, etc… However, there are still some areas where people find themselves repetatively doing the same thing in certain scenarios.