Set the Caption for DataGridView

retkehing

Well-known member
Joined
Feb 5, 2006
Messages
153
Programming Experience
Beginner
How to set the caption for DataGridView? I can't find the caption in the its properties like what i have done to the DataGrid. Thank you.
 
I think u have got the idea wrong. Sorry if i were wrong. Your code seems like assign a column name to each column and what i want to do is actually set the title of the table, for example employee list. There is a bar at the top for DataGrid to specify the title and give the idea of what this database about.
 
Microsoft decided to not include the caption property in the datagridview control. You can always use a label above the datagridview though.
 
Back
Top