Pit76
asked on
How to check if a list contains items? c#
HI all,
I have a list wich I need to check if it contains any items or not. If it does not I need to show a warning that it has to have at least one item.
How to check this?
Probably pretty simple but can't seem to find it right now...
Grts
I have a list wich I need to check if it contains any items or not. If it does not I need to show a warning that it has to have at least one item.
How to check this?
Probably pretty simple but can't seem to find it right now...
Grts
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
Indeed I forgot to tell that. It's the first one.
Thought it was going to be simple, about the same as checking if a DataSet has rows...
Anyway thx for putting my nose on it :)
Grts
Indeed I forgot to tell that. It's the first one.
Thought it was going to be simple, about the same as checking if a DataSet has rows...
Anyway thx for putting my nose on it :)
Grts
ASKER
Thx :)
Wow... I don't even know what to say.
ASKER
Yeah I know sry.
I should have split the points but tbh I looked over your answer, as stupid as it may sound...
You've helped me before so I feel a little bad about it...
Greetings.
I should have split the points but tbh I looked over your answer, as stupid as it may sound...
You've helped me before so I feel a little bad about it...
Greetings.
Open in new window