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.
Up arrow icon