dynamic bound template columns in a web datagrid using VB.NET
Posted on 2004-03-26
I'm trying to create a class to use as a template for custom bound columns in a web server control datagrid, and I'm about to pull my hair out. I've used the MSDN documentation to successfully write a class that will create any template column that I define in the main page, but I can't figure out how to add databinding to the item and editItem Item Types (which contain a label and a textbox, respectively). I've been attempting to add an event handler within the new template class that will bind each of these, but haven't had any luck. Can anybody provide me with an example that will allow me to add a custom template column to a web server datagrid programmatically?
Thanks in advance!