Displaying Text in the client area of the grid

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

1 Reply

ST stanleyj Syncfusion Team 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

Loader.
Up arrow icon