【发布时间】:2012-04-02 07:20:08
【问题描述】:
我正在研究 Telerik Radgrid。我想在 Telerik radgrid 的 Caption 中添加动态数据,应该是这样的
标题 1:ABC(DynamicDatafromDataset)
我曾尝试通过以下方式在 aspx 页面中添加动态数据,但没有成功。
<MasterTableView Caption= """< aHtml>< Table><tr><td>Caption1</td><td><%# DataBinder.Eval(Container.DataItem, "Caption1_DataField")%></td></tr></ Table>< aHtml>""" />
现在我想以编程方式添加标题并将数据动态绑定到它。这个我试过了
Radgrid1.MasterTableView.Caption="Caption1";
这会在网格中显示标题,但如何从数据集中动态地将数据绑定到它?
【问题讨论】:
-
我在aspx页面中试过的Caption如下
Caption1
标签: c# telerik-grid