开发者

asp.net detailsview how to set edit field width

开发者 https://www.devze.com 2023-02-05 01:10 出处:网络
I have a detailsview bound to a LINQ SQL query. Display is fine, but when us开发者_开发百科er switch to Edit mode, the width of all fields to edit is REDUCED, and there is no wordwrap!

I have a detailsview bound to a LINQ SQL query.

Display is fine, but when us开发者_开发百科er switch to Edit mode, the width of all fields to edit is REDUCED, and there is no wordwrap!

How can I set width according to database column length for instance, or to a fixed value of mine?


You can use EditRowStyle and/or EditDataRowStyle properties of DV. You can set styles for individual control in the EditItemTemplate. You can share some screenshot or code if there is any problem setting those properties.

0

精彩评论

暂无评论...
验证码 换一张
取 消