SyntaxFix
Write A Post
Hire A Developer
Questions
You should use a simple IF statement
IF
List<String> data = GetData(); if (data.Count == 0) throw new Exception("Data Empty!"); PopulateGrid(); ShowGrid();