Skip to content

How do I skip a blank cell? #2196

Closed Answered by AltruCoder
FlawlessCasual17 asked this question in Q&A
Discussion options

You must be logged in to vote

You have two choices.

  1. Make HoursWorked a Nullable<int> . Then any blank cells will come in as a null value.
public int? HoursWorked { get; set; }
  1. Set a default value for HoursWorked. Then any blank cells will come in as the default value you have set.
[Default(0)]
public int HoursWorked { get; set; }

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@FlawlessCasual17
Comment options

@FlawlessCasual17
Comment options

Answer selected by FlawlessCasual17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants