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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Displaying Text in the client area of the grid

Thread ID:





38826 Dec 20,2005 06:52 AM UTC Dec 20,2005 08:49 AM UTC WinForms 1
Tags: GridControl
Shwetha R
Asked On December 20, 2005 06:52 AM UTC

hi, i am filling the gridcontrol from the data i get from the database. If i dont get any data from the database, i set the rowcount of the grid to "0" and i want to display a text in the client area of the grid as "No records found". can anyone give me a solution for displaying a text in client area(empty space when only the header row is present) of the GridControl? i dont want to bother the user by displaying a messagebox. thanks & regards shwetha

stanleyj [Syncfusion]
Replied On December 20, 2005 08:49 AM UTC

Hi Shwetha, You can achieve this by deriving the grid and overriding the OnPaint method. In the override, call the baseclass, and then use e.Graphics.DrawString to draw the string. Here is a simple try. Best regards, Stanley


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon