Default display for a Datagrid

  • Thread starter Thread starter Kenneth Keeley
  • Start date Start date
K

Kenneth Keeley

Hi,
Can I configure what a datagrid will look like if no results are found
for it to bind to. I would like it to say something like "No Results Found
please try again." All I get at the moment is a blank datagrid with the
heads all showing and no results.

Thanks
Kenneth
 
Check your datasource to see if it has any rows.
If it has no rows, make the datagrid invisible, and make a label or
something else visible that displays an appropriate message.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top