Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I want to enable the DataGridView's particular cell as multiline...
and accordingly the rows width has to increase automatically...

Does anybody have idea about it?

Thanks For The Ideas...
My Codings:-
------------
VB
Dim MyDtb1 As New DataTable,NRow as DataRow
MyDtb1.Columns.Add("one", Type.GetType("System.String"))
MyDtb1.Columns.Add("two", Type.GetType("System.String"))
MyDtb1.Columns.Add("three", Type.GetType("System.String"))

      For p As Integer = 0 To 20
           Drow = MyDtb1.NewRow
           MyDtb1.Rows.Add(Drow)
       Next

       DataGridView1.DataSource = MyDtb1
Posted
Updated 22-Dec-10 2:17am
v2
Comments
Sandeep Mewara 22-Dec-10 8:17am    
Use PRE tags to format code part. It makes the question readable.

1 solution

Try this which has answer.

Datagridview - multi-line input cell[^]

Have a great time, Merry Christmas :-O
 
Share this answer
 
Comments
Dalek Dave 24-Dec-10 16:15pm    
Good Link

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