how to auto size the textbox in grid view

Posted by Deepakji under C# on 3/19/2012 | Points: 10 | Views : 3049 | Status : [Member] | Replies : 2
hi i am working with grid view but i am facing a problem that is while i generate the gridview then when i want to edit a row and when i click on edit after clicking the box which i am able to view has data in it but i am getting that box size too small because the data in that is related to answer where data will be more so can any one help me to show how to size the textbox according to the data in it or any other way that might solve it.

i am using autogenerate "edit" button.


thanking you,




Responses

Posted by: Naraayanan on: 3/19/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Check this link
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewtextboxcolumn.aspx

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Deepakji, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Patel28rajendra on: 3/19/2012 [Member] Starter | Points: 25

Up
0
Down
Hi

this may help

http://dotnetspeaks.net/post/Automatically-Resizing-MultiLine-TextBox-based-onc2a0text.aspx

R D Patel

Deepakji, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response