Skip to main content
1-Visitor
June 22, 2017
Question

advanced grid auto select first row

  • June 22, 2017
  • 2 replies
  • 2132 views

I am using an advanced grid to display some data and when a user selects one of the rows the data from that row is shown in a form on the same page.   When the data first loads I would like to have the first row auto selected and its data shown in the form.  As far as I can tell there is no setting in the grid to have a particular row autoselected which would fire the SelectedRowsChanged event.  I know how to do this using a session variable but I was curious if someone knew of an easier way.  BTW I am using version 7.4 (I don't know if things have changed in version 8 or not).

    2 replies

    5-Regular Member
    June 22, 2017

    Hi Ken Yetzer​,

    Which version of advanced grid are you using. In the latest version of Advanced Grid available on ThingWorx Marketplace; there is a property to set the DefaultSelectedRows. You can set it as 1 to auto select first row.

    You would also need to change theRowSelection to single/Multiple for DefaultSelectedRows to work

    I hope it helps.

    kyetzer1-VisitorAuthor
    1-Visitor
    August 10, 2017

    this option apparently does not work on a loading of new data.  Is there anyway to have the grid auto select the first row when you load new data?