Click here to Skip to main content
15,911,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to increase the column width in datagrid for Mobile Application. But I am not able to do so. Can anyone help me for this??



Any help is kindly appreciated.
Posted

Dear Saumya,

Please follow this link:-

http://stackoverflow.com/questions/1051690/column-width-of-a-datagrid-in-a-windows-mobile-application[^]

Hope this will help you out.

thanks
 
Share this answer
 
Comments
Saumyavemula 27-Dec-11 1:01am    
Can you help me with VB.net
Varun Sareen 27-Dec-11 1:06am    
Dear Saumya,

this link might help you out.:-

http://msdn.microsoft.com/en-us/library/system.windows.forms.datagrid.preferredcolumnwidth.aspx
you can try this
VB
DataGrid1.TableStyles("TableName").GridColumnStyles("Title").Width = 100
 
Share this answer
 
Comments
Saumyavemula 27-Dec-11 1:52am    
Error is coming as NullReferenceException

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