我搜索了一下,只有DataGrid的方法,UltraWebGrid好像没人提问过...

解决方案 »

  1.   

    应该差不多吧   都实现ITemplate 然后添加LinkButton到container
      

  2.   

    DataGrid可以这样:Template temp= Page.LoadTemplate("webusercontrol1.ascx");
    TemplateColumn tc=new TemplateColumn();
    tc.HeaderText = "Last Name";
    tc.ItemTemplate = temp;
    DataGrid1.Columns.Add(tc);
    DataGrid1.DataSource = ds;
    DataGrid1.DataMember = "employees";
    DataGrid1.DataBind();
    但是UltraWebGrid 的Columns.Add()不能加载TemplateColumn
    只能加载TemplatedColumn ...