Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
715
How to remove a row from xamWebGrid child band programmatically?
posted

Hello.

How to remove a row from the child band programmatically?

Removing from the 'root' band:

xGrid.Rows.Remove(rowToRemove);

Thank you.

 

  • 6475
    Suggested Answer
    posted

    You'll need to access the ChildBand's row collection for a specific parent row:

    xGrid.Rows[0].ChildBands["ChildBandName"].Rows.Remove(rowToRemove);

         As a colleague of mine suggested, it's always better to remove the corresponding object from your data collection instead of removing grid rows.

    Hope this helps