Autogenerate Columns and fix the columns on the server side

Posted by: lindasingini on 10 September 2017, 11:34 am EST

  • Posted 10 September 2017, 11:34 am EST

    Hi, i am populating a gridview and  autogenerating columns because the number changes all the time.I would like to fix some of the columns so i added the code for fixing the columns in a gridview_databound event.Am i doing it in the wrong place?? I also would like help on how to make my grid edidtable client side if i am autogenerating the columns.


     


    Thank you.

  • Replied 10 September 2017, 11:34 am EST

    Hi,


    Autogenerated columns cannot be fixed, you need to have columns defined in design-time in order to be able to fix them.


    >> I also would like help on how to make my grid edidtable client side if i am autogenerating the columns.


    If you use client-side editng, C1GridView won't update underlying dataset automatically, you need to do it manually using the following events:


    BeginRowUpdate - open connection with a database here


    RowUpdating - perform update using values passed in e.Keys and e.NewValues


    EndRowUpdated - close connection to the database


    Regards,


    Sergey.

  • Replied 10 September 2017, 11:34 am EST

    Thank you for the reply. It was helpful. Another question i have is how easy is it to embed a silverlight control in an asp page?

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels