public void onGridRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //DataRow row = e.row.DataItem as DataRow; //DataRow row = e.Row as DataRow; //Debug.WriteLine(e.Row.Cells[4].Text ); //GridViewRow gvr = (GridViewRow)e.Row; //Debug.WriteLine(gvr.ID.ToString()); // trying to test a field called transfer from my datatable object binded to this control } }