Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.67/5 (2 votes)
See more:
Hi
I have created 1 table with datagrid view.But when I run the application 1st column (ROW header) shows blank.When i Click row ,arrow display on that column.


But I dont want such a representation.I want to add text in 1st column.How to do that.....


note: 1st row is column header which is fine
1st column simply shows blank with arrow (need to add text)


Please Help.


Thanks

Viva
Posted
Comments
renish patel 28-May-13 6:49am    
Can you properly explain with your code?
IpsitaMishra 28-May-13 6:54am    
please provide your code that will clarify your question.
Varun Sareen 28-May-13 8:19am    
for given example2 at http://www.dotnetperls.com/datatable

if you see form1 cat and dog are 2nd and 3rd column header but 1st column header is blank.and that 1 st column only shows arrow at 2nd row and star at 4th row............ actully that 1st column is in grey color.

I do not want that blank 1st column...how to remove that or how to add text considering it is a 1st column.

thanks
viva
Varun Sareen 28-May-13 8:25am    
Dear Viva,

The column which you are saying is blank is not ta column. But yes if you want such column in your table then you need to define that column while making the table.

ALTER [TABLE NAME] ADD [COLUMN NAME] [DATA TYPE] [NULL]

Regards

Varun Sareen
[no name] 28-May-13 8:50am    
Can u please elaborate ...I didnt get this syntax

ALTER [TABLE NAME] ADD [COLUMN NAME] [DATA TYPE] [NULL]

1 solution

for given example2 at www.dotnetperls.com/datatable[^]

if you see form1 cat and dog are 2nd and 3rd column header but 1st column header is blank.and that 1 st column only shows arrow at 2nd row and star at 4th row............ actully that 1st column is in grey color.

I do not want that blank 1st column...how to remove that or how to add text considering it is a 1st column.

thanks
viva
 
Share this answer
 
Comments
Varun Sareen 28-May-13 8:19am    
Always comment if some one asks you some query regarding your question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900