不好意思呀,我又有问题了
ItemDataBound是这么写吗?protected void datagrid_ItemDataBound(object sender, EventArgs e)
我双击,出不来这个函数
这样写报错了:System.EventArgs”并不包含“Item”的定义
我的程序是这么写的
protected void datagrid_ItemDataBound(object sender, EventArgs e)
{
foreach (DataGridItem Item in DataGrid1.Items)
{
string str_date = "select * from lab_date";
DropDownList dropdownlist = (DropDownList)e.Item.Cells[3].FindControl("drp");
co_cla.dr_Bind(str_date, dropdownlist);
dropdownlist.DataBind();
DropDownList dropdownlist1 = (DropDownList)e.Item.Cells[4].FindControl("drp1");
co_cla.dr_Bind(str_date, dropdownlist1);
dropdownlist1.DataBind();
}
}
ItemDataBound又有问题了