| こんにちは。
DataGridで以下のような処理だとします。
protected void DataGrid1_ItemDataBound(object sender, DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item)
{
// 処理
}
}
GridViewでは以下のようになるんじゃないでしょうか。
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
// 処理
}
}
|