Allowing one column to be edited but not another

前端 未结 3 594
灰色年华
灰色年华 2020-12-11 05:11

i have an asp.net c# application.

my gridview has a datasource that has 2 fields.

1 field cannot be edited by the user, but i need the other one to be editab

3条回答
  •  春和景丽
    2020-12-11 05:41

    If you use a SqlDataSource then you should make sure to remove the columns to update from the UpdateCommand in the SqlDataSource if not you will have a problem when you update the fields

提交回复
热议问题