Urgent need to be solved about C1GridView adding new rows!

Posted by: jackwater on 10 September 2017, 11:39 am EST

  • Posted 10 September 2017, 11:39 am EST

    Now I am using the C1GridView component that a problem came. How to create new rows in C1GridView, I can't find any inner methods to add new rows.
    Another question is how to delete rows on the C1GridView which runs in the Client-Side Editing mode.
  • Replied 10 September 2017, 11:39 am EST

    C1GridView does not provide methods to add new rows. Instead you should add a new row to your dataset then re-bind grid to this dataset. Attached is a sample illustrating this.

    As for deleting rows, you can turn on the AutogenerateDeleteButton option, alternatively you can add C1CommandField or C1ButtonField with CommandName set to "Delete".
    2011/07/sample3.zip
  • Replied 10 September 2017, 11:39 am EST

    Hi Jack,

    Please have a look at the attached sample which explains how you can delete a row when using ClientSideEditing with C1GridView.

    Regards
    Abdias
    2011/07/C1GridView_ClientSideEditDelete.zip
Need extra support?

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

Learn More

Forum Channels