System.Data.Common.DbDataRecord rowv = (System.Data.Common.DbDataRecord)e.Item.DataItem; rowv["MID"].ToString()