private void BtnRemoveRow_Click(object sender, RoutedEventArgs e) { if (GR.Rows > 0) { GR.RemoveRow(); } }