Hi
I want to Display Default Text at the Top of the Grid.
after i initialize the Grid.DataSource , actually i want to display the Company Name, at the begning of all the Rows in a grid.
If you set the Text property on the grid, it will display a caption at the top of the grid.
i want to display multiple line text
such as
Company name
address
report name
date
How to do that using Text property of grid or by any other method at the top of the grid..
And when i export the Grid to Excel or PDF then the this text should be also exported to the file.
I don't think the grid caption supports multi-line text. And I am certain that the header text is not exported.
What I would do is place a Label control on the form above the grid and put whatever text you need into the label.
For example, you can handle the events of the exporter. In this case, for both Excel and PDF, you would handle the BeginExport event of the respective Exporter component and insert the text into the Excel sheet or the document before the grid is exported.