private bool Save() { if (ViewResult.GetFocusedDataSourceRowIndex() < 0) { throw new Exception("Selecione um item na linha"); } SelectedRow = new TT(); SelectedRow.CopyBy(TableAdapter); SelectedRow.FillFields(((DataTable)grdResult.DataSource).Rows[ViewResult.GetFocusedDataSourceRowIndex()]); return(true); }