T
Tina
I'm developing an asp.net ascx control that will allow editing of any
database table. After getting table names and columns from
INFORMATION_SCHEMA I have to build a datagrid in code consisting of template
columns with a textbox in each ItemTemplate.
For each column I build the following code works fine....
dim myCol as new TemplateColumn
myCol.headertext = row("COLUMN_NAME")
dim myTB as new Textbox
myTB.ID = row("COLUMN_NAME")
So, now I have a TemplateColumn and a textbox but I can't figure out how to
put the textbox into the template column before I do dg.columns.add(myCol)
I've tried various assignments and casts with no success thus far.
Anyone know how to do this? Anyone know of a knowledge base that addresses
building grids in code and assigning the various attribute values - all the
same things we do with property builder.
Thanks,
T
database table. After getting table names and columns from
INFORMATION_SCHEMA I have to build a datagrid in code consisting of template
columns with a textbox in each ItemTemplate.
For each column I build the following code works fine....
dim myCol as new TemplateColumn
myCol.headertext = row("COLUMN_NAME")
dim myTB as new Textbox
myTB.ID = row("COLUMN_NAME")
So, now I have a TemplateColumn and a textbox but I can't figure out how to
put the textbox into the template column before I do dg.columns.add(myCol)
I've tried various assignments and casts with no success thus far.
Anyone know how to do this? Anyone know of a knowledge base that addresses
building grids in code and assigning the various attribute values - all the
same things we do with property builder.
Thanks,
T