How to dynamically create gridview through code

Posted by: malishin on 31 October 2021, 6:15 pm EST

  • Posted 31 October 2021, 6:15 pm EST

    I want to create c1gridview and bind to sqldatasource, In designe time window, it's easy .
    But in my project, these need to be dynamically generated in the code(Includes edit button column and template columns)

    Could you provide a little sample
  • Replied 1 November 2021, 3:06 pm EST

    Hi,
    As we understand, you would like to add the C1GridView using the C# code behind code using the SqlDataSource with the Edit button to edit the records and Template Columns to add the template for specified columns.
    Please confirm and share a screenshot of your requirement. Also, please let us know the reason for using the code behind for creating the C1GridView. So that we may assist you accordingly.

    Regards,
    Manish Gupta
Need extra support?

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

Learn More

Forum Channels