在 DevExpress AspxGridview 控件绑定
protected void ASPxGridView1_DataBinding(object sender, EventArgs e)
{
// in this event I want to reach LabelText and modify it as "text =Server.HtmlDecode(text);"
}
但是我无法到达 LabelText。我试图找到解决方案,但从未找到。
请帮我。我被困住了......
<dx:GridViewDataColumn VisibleIndex="0" Width="100%" CellStyle-HorizontalAlign="Left" CellStyle-VerticalAlign="Middle" Caption=" "> <EditFormSettings Visible="False" /> <DataItemTemplate> <table class="table_white"> <tr> <td style="text-align:left">
<asp:Label ID="LabelName" runat="server" Text='<%#Eval("name") %>'></asp:Label>
</td> </tr> <tr> <td style="text-align:left"> <asp:Label ID="LabelText" runat="server" Text='<%#Eval("text") %>'></asp:Label>
</td> </tr> <tr> <td style="text-align:left">
<hr style="border: 1px solid #CCCCCC" />
</td> </tr> </table> </DataItemTemplate>
<CellStyle HorizontalAlign="Center" VerticalAlign="Middle"></CellStyle> </dx:GridViewDataColumn>