开发者

Add new row to gridview

开发者 https://www.devze.com 2023-01-08 11:40 出处:网络
I\'m using a gridview to display and access a sql database and using databinding. I\'m also using autogenerate columns as one gridview has multiple sources and toggles between them. What would be the

I'm using a gridview to display and access a sql database and using databinding. I'm also using autogenerate columns as one gridview has multiple sources and toggles between them. What would be the best way to allow the user to insert a new row?

Would a listview开发者_StackOverflow中文版 be better?


Easiest way to to add a detailsview, set it to the datasource of the gridview and done.


What about changing the DataGridView.EditMode property to something other than EditProgramatically?


  • FormView on the page, DefaultMode = Insert, and provide an Insert Template.
  • Add buttons / visibility toggles / datahookup etc. as needed.
0

精彩评论

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