-2

Can someone please explain me how to handle null values in mvc3 webgrid?

1
  • Could you be a little more specific? Commented Jan 5, 2012 at 9:09

1 Answer 1

1

The question is a little vague but I believe you can use the null coalescing operator ??.

This question here shows dealing with a null value using the ternary operator (?:) but I believe it could have been written:

grid.Column("Absend", format: (item) => item.AbsEnd ?? string.Empty)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.