2007/08/07(Tue) 21:01:01 編集(投稿者)
やろうとしているのは、こういう事でしょうか?
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (GridView1.EditIndex != e.Row.RowIndex)
{
((Label)e.Row.Cells[3].FindControl("Label1")).Text = "変更後の値";
}
else
{
((DropDownList)e.Row.Cells[3].FindControl("DropDownList1")).SelectedValue = "変更後の値";
}
}
}
多分違うでしょうね。。。
詳しく説明していただけると、ちゃんと答えられるかもしれません。