if ( e.Item.ItemType == ListItemType.EditItem )
{
DataRowView drv = (DataRowView)e.Item.DataItem;
SqlCommand com = new SqlCommand("select dm,dmmc from zy_yp1_group order by dmmc");
com.Connection = conn;
if (conn.State != ConnectionState.Open )
conn.Open();
SqlDataReader dr = com.ExecuteReader();
ListBox lb = (ListBox) e.Item.Cells[11].Controls[1];
lb.DataSource = dr;
lb.DataTextField = "dmmc";
lb.DataValueField = "dm";
lb.DataBind();
dr.Close();
conn.Close();
}