public static int GetIDFromTitle(GridViewRow gvr, int index, bool ishyperlink) { dynamic tc = gvr.Cells[index].Controls[1]; return(GMConvert.GetInt32(tc.Title)); }
public static int GetID(GridViewRow gvr, int index) { dynamic tc = gvr.Cells[index].Controls[1]; return(GMConvert.GetInt32(IsEdit(gvr) ? tc.Value : tc.Value)); }