public static T FindFirstControl <T>(this ASPxGridView grid, Func <Control, bool> func) where T : Control
 {
     return(grid.GetAllControls().FirstOrDefault(t => func(t)) as T);
 }