开发者

Web application Listview question

开发者 https://www.devze.com 2023-03-28 00:06 出处:网络
In a list view in C# how can I make all the fields in a column editable at once? Right now I have the standard edit button which allows me to update just one line at a time. I want the end user to be

In a list view in C# how can I make all the fields in a column editable at once? Right now I have the standard edit button which allows me to update just one line at a time. I want the end user to be able to click a button and allow then to开发者_JAVA技巧 edit the column in its entirety.


Rebind the ListView with all TextBoxes when the user clicks edit.

You would have to manually track if you're in edit mode or not and on postback loop through all the rows retrieving the values from the textboxes and store them.

There is no built-in functionallity for what you're trying to do but it's possible.

0

精彩评论

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