I'm banging my head off the wall here trying to understand why these events aren't being called like I would expect them to.
If you look at my grid definition below you'll see its very basic.
My question is why does ColumnCreated get called over 30 times even though I have 2 columns? When debugging I can see they're "GridExpandColumn's". But here's the kicker: It's never called for EITHER of my 2 columns I've defined below.
I also tried hooking up OnColumnCreating and it doesn't even get called at all. So you have Created getting called over 30 times, and Creating getting called 0 times. This doesn't make sense to me. Normally the Creating event preludes the Created event.
What I am actually trying to do is localize the HeaderText value on the columns. Not from a .NET resource file but from a database driven implementation. Now normally I would just insert some script blocks and change the HeaderText property to something like HeaderText='<%# ResourceHelper.GetString("keyName") %>' but its not a databound control and doesn't let me.
So I wanted to use ColumnCreated to just feed in whatever I set in the HeaderText value into my ResourceHelper class and return a string.
What do you suggest?