We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

grid with data

How to check if there are data in the grid?
I'm using databound grid.

2 Replies

SD Sarathi D Syncfusion Team September 19, 2007 01:01 AM UTC

Hi Hrvoje,

Thank you for posting your query to us.

Please use the code snippet below to check whether the grid contains the data or not.

if(this.gridDataBoundGrid1.DataSource==null)
MessageBox.Show("Grid has no data");

Please let me know if this satisfies you.

Regards,
Sarathi


HR Hrvoje September 19, 2007 12:40 PM UTC

It's working!
Thank you.

Loader.
Live Chat Icon For mobile
Up arrow icon