我想从(Description)
获取专栏DataRowView
。我有以下代码。
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.DataItem != null)
{
DataRowView dataRowView = ???????????
string description = dataRowView["Description"] as string;
}
}
如何使用适当的代码替换??????????
?
答案 0 :(得分:0)
使用(DataRowView)e.Row.DataItem;