Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > CaptionText in DataGridView
 

CaptionText in DataGridView

hi all,

I am using DataGridView in my form, I want to set some Caption to the Grid, to know

the user what this grid meant for, In the previous version of the DataGridView i.e.

DataGrid thereis property name "CaptionText" for setting the caption to the grid,

but i do not saw any such property in the DataGridView, can anyone tell me the way

how to set the CaptionText for the DataGridView.

Thanks in Advance

-Rahul

Rahul Saxena  Thursday, April 20, 2006 7:36 AM
vkh75  Friday, April 28, 2006 6:34 AM
There is no such a property in a DataGridView control.
vkh75  Thursday, April 20, 2006 7:50 AM
vkh75  Friday, April 28, 2006 6:34 AM

Hello there, so what's the sustitution for CaptionText? For example,

.CaptionText = .DataMember does not work . I think the error message was that CaptionText is not a member of DataGridView. How do I make it so that the command line above work?

tha0  Friday, June 30, 2006 3:51 PM

If you are binding data from DataTable then it will automatically set the column name in DataGridView same as the column name in your DataTable.

Andy

VuaCorona  Friday, June 30, 2006 6:40 PM

You can use google to search for other answers

Custom Search

More Threads

• How do I catch SelectionChangeCommitted event of a combobox in a datagrid?
• IList<T> Woes
• Getting the checked status from the datagridviewcheckbox column
• COMBOBOX VS DATAGRIDVIEW - resizing and positioning!
• DataGrid default arrow on column header and changing the font of column header in c#
• how data binding works in .net2
• automatically updating dataset and datagrid
• How to get all Elements of one DataColumn
• How to programmatically create a datagridview combobox cell column?
• DataGridView performance question