开发者

asp.net detailsview how to set edit field width

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜