0
<asp:Literal ID="ltrEOGrid" runat="server"></asp:Literal>
protected void Page_Init(object sender,EventArgs e)
{
string Grid = "<eo:Grid ID=\"Grid1\" runat=\"server\"> <Columns> <eo:TextBoxColumn HeaderText=\"1010\" DataField=\"1010\"></eo:TextBoxColumn></Columns></eo:Grid> ";
ltrEOGrid.Text = Grid;
}
如何綁定gridview id throgh DataSource。 就像在文字控制中添加GridView C#
Grid1.DataSource = dt;
Grid1.DataBind();