Click here to Skip to main content
15,887,272 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two textboxes above gridview and two column in gridview.when change the size of column in gridview then dynamically change the respective textbox size.
Posted
Comments
n.podbielski 15-Oct-12 4:02am    
Where? Asp.net? Winforms?

1 solution

Hook in to the ColumnWidthChanged event of the gridview. When the event triggers, look at the event parameter e. It has a property, Column, which holds the column that triggered the event.

If its Name matches one of the column names with a corresponding text box, read the column's width and and set the width of the corresponding text box.
 
Share this answer
 

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