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.
Unfortunately, activation email could not send to your email. Please try again.

Displaying Text in the client area of the grid

Thread ID:





38826 Dec 20,2005 01:52 AM Dec 20,2005 03:49 AM Windows Forms 1
Tags: GridControl
Shwetha R
Asked On December 20, 2005 01:52 AM

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 03:49 AM

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.

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.