摘要:[asp.net]在RowDataBound存取asp:bound欄位
DataRowView drv = (DataRowView)e.Row.DataItem;
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (drv["MYCOLNAME"] != DBNull.Value)
{
var val = Convert.ToBoolean(drv["MYCOLNAME"]);
}
}
以上參考