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
860
Exporting only selected rows to Excel spreasdsheet
posted

I want to restrict the exported rows t only those currently selected. I am checking the e.Row.Selected property in the InitializeRow event handler in order to set skiprow appropriately. However e.Row.Seelcted always seems to be false. Is there another way to check if a row is currrently selected in the grid?

  • 860
    Verified Answer
    posted

    I have now discovered that the row passed in the event is a clone and I need to call GetRowFromPrintRow to get the original one which has the correct Seelcted marker.