Skip to content

Commit a9a5ff8

Browse files
EugeneKramerRon Petrusha
authored andcommitted
Correct formatting tabbed to single spacing for DataGridViewCellCancelEventHandler (#943)
Correct formatting tabbed to single spacing for DataGridViewCellCancelEventHandler Delegate snippet5to be consistent with rest of code. Resolves dotnet/dotnet-api-docs#2508
1 parent ac25f95 commit a9a5ff8

File tree

1 file changed

+3
-3
lines changed
  • snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridView.RowOperations/CS

1 file changed

+3
-3
lines changed

snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.DataGridView.RowOperations/CS/rowoperations.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ private Boolean IsTrackGood(DataGridViewCell cell)
279279
{
280280
Int32 cellValueAsInt;
281281
if (cell.Value.ToString().Length == 0)
282-
{
282+
{
283283
cell.ErrorText = "Please enter a track";
284284
songsDataGridView.Rows[cell.RowIndex].ErrorText =
285285
"Please enter a track";
@@ -305,7 +305,7 @@ private Boolean IsTrackGood(DataGridViewCell cell)
305305
private Boolean IsDateGood(DataGridViewCell cell)
306306
{
307307
if (cell.Value == null)
308-
{
308+
{
309309
cell.ErrorText = "Missing date";
310310
songsDataGridView.Rows[cell.RowIndex].ErrorText =
311311
"Missing date";
@@ -347,4 +347,4 @@ private void RemoveAnnotations(Object sender,
347347
}
348348
//</snippet10>
349349
#endregion
350-
}
350+
}

0 commit comments

Comments
 (0)