.net datagrid dynamic controls

Results 1 to 2 of 2

Thread: .net datagrid dynamic controls

  1. #1
    Join Date
    Dec 1969

    Default .net datagrid dynamic controls

    I&#039;m trying to create controls in a datagrid at runtime.<BR>I found the following snippet similar to what I&#039;m attempting but can&#039;t get it to work.<BR><BR>TemplateBuilder tcTmp = new TemplateBuilder(); tcTmp.AppendLiteralString("&#060;%# DataBinder.Eval(Container.DataItem, \"FirstName\") %&#062;"); <BR>tcTmp.HtmlDecodeLiterals(); <BR>dlTmp.ItemTemplate = tcTmp; <BR>dlTmp.DataSource = __someDataReader__ dlTmp.DataBind(); Controls.Add(dlTmp); <BR><BR>Can anybody help ?<BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default .net forum?

    Try there, this forum is for classic ASP.<BR><BR>We know diddly-squat about .Net.<BR><BR>-Doug

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts