locked
Gridview with auto generate columns = true for By default edit mode RRS feed

  • Question

  • User1623409651 posted

    Hi all,

    I have bound the data in gridview with auto generate columns = true now I need to update the gridview columns data in bulk on button click .  please suggest is there any way to do it.

    Regards,

    Thursday, September 27, 2018 6:25 AM

All replies

  • User839733648 posted

    Hi Rameezwaheed,

    I have bound the data in gridview with auto generate columns = true now I need to update the gridview columns data in bulk on button click . 

    As far as I know, when you set AutoGenerateColumns="True", it is difficult to realize updating the datas in bulk.

    Because when you want to edit the columns, you have to first make it into edit mode, which is hard to achieve.

    Besides, when you set AutoGenerateColumns="Flase", there are several ways to achieve your requirement.

    You could refer to the following links.

    How to Update bulk data (multiple rows) to a SQL Server database using ASP.NET.

    Bulk Edit Update Multiple Rows in ASP.Net GridView using CheckBoxes

    Bulk Edit GridView in .NET

    Best Regards,

    Jenifer

    Friday, September 28, 2018 8:56 AM
  • User1623409651 posted

    Thanks for reply,

    Actually I have dynamic columns bounded with gridview I need to give facility to end user to edit the column text of the gridview . that's why iam looking for the any idea  that it is possible with gridview with auto generate columns.

    Thanks

    Tuesday, October 2, 2018 9:25 AM