<column>
<asp:BoundField DataField="dEndDate" HeaderText="结束日期" DataFormatString="{0:yyyy年M月d日}" HtmlEncode="false" />
</column>在protect void gridView_onRowDataBound(object sender,GridViewRowEventArgs e){} 中如何获取他的值呢?
请各位高人指点.
<asp:BoundField DataField="dEndDate" HeaderText="结束日期" DataFormatString="{0:yyyy年M月d日}" HtmlEncode="false" />
</column>在protect void gridView_onRowDataBound(object sender,GridViewRowEventArgs e){} 中如何获取他的值呢?
请各位高人指点.
aa=(BoundField )this.GridView.Rows[e.RowIndex].FindControl("dEndDate").text
这样不可以么?
CS0030: 无法将类型“string”转换为“System.Web.UI.WebControls.BoundField”
dv["dEndDate"].toString()