Get selected row in a sheet with no columns

Posted by: kbj on 6 March 2020, 1:16 am EST

  • Posted 6 March 2020, 1:16 am EST

    Hi,
    Is it possible to get the selected row in a sheet with no columns. activeRowIndex returns a -1 and activeRow returns the first row.
  • Marked as Answer

    Replied 8 March 2020, 3:51 pm EST

    Hi,

    You can get the active row index from the selection:
    if (fpSpread1.ActiveSheet.SelectionCount > 0)
    {
    int activeRowIndex = fpSpread1.ActiveSheet.GetSelection(0).Row;
    }


    Regards,
    Jitender
  • Replied 9 March 2020, 2:39 am EST

    Hi Jitender,
    This works perfectly.
    Thanks,
    Kingman
Need extra support?

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

Learn More

Forum Channels