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

No entries message

Suppose we have a GridDataBoundGrid grid with empty data source. By default only column headers are displayed in this case. But is there any way to display some message like "No entries where found." under headers? (actually there is an option to create a user control with gird and label under it showing label when grid is empty and hiding otherwise. but what i need is to do this somehow by means of grid itself)

Thanks in advance


1 Reply

JJ Jisha Joy Syncfusion Team December 8, 2008 08:27 AM UTC

Hi Andy,

You can have another columnHeader under the original columnheader and display the message there.

this.gridDataBoundGrid1.Model.Rows.HeaderCount = 2;
this.gridDataBoundGrid1.Model[1, 1].Text = "No Entries";

Please let me know if I misunderstood your requirement.

Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon