Click here to Skip to main content
15,906,296 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using grid view to bind data, two of the column note and address having more content, i need to hide part of content and wants to show only single line.
Posted

1 solution

Is it you want to hide columns? If yes, use
C#
datagridviewRow1.Columns[Column_Index].Visible = false;
 
Share this answer
 
v2
Comments
tssrajkumar@gmail.com 19-Dec-11 6:10am    
i do not need to hide the column , i wants to show one line in a column when it has multiple lines of data,when the time of editing wants to show all line in a text box with multi line. pls help me
lukeer 19-Dec-11 6:29am    
If the solution doesn't fit your needs, then don't accept it. Since you did accept it, the question is marked "Solved". Few people will now care to think over a solution that helps you because they won't even read your question.
lukeer 19-Dec-11 6:30am    
Don't repost the same question again. Use "Improve question" on your first one[^] instead.

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