My issue is that i want to create a control derived from a gridview that will automatically set the maxlength of any bound textbox
Is this a custom control? It sounds like it is so could you override the datasource member and dig out all the field info there and use it in the onrowdatabind to do your thing.

Not sure if I'm on the right track here