Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a gridview and it is bounded with dataset.I have not create any boundfield manually.When i click on edit button of gridview textboxes appears and gridview expands.But after updating all is ok.How to prevent the expansion of width of gridview after clicking edit button in code behind.I have tried to fix in rowcreated event ,but failed.
Posted
Comments
Rockstar_ 12-Jul-13 0:03am    
Try to set width of the gridview from code behind...

1 solution

 
Share this answer
 
Comments
souvikcode 15-Jul-13 12:16pm    
All help tells to set control style property of column in design view.But I have mentioned that I am trying in code behind by binding with dataset.So how to do it?

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