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.
 
Back
Top