Posted 18 January 2019, 3:26 am EST
I would like to set the grid row. It appears I can use both selection and selected. What is the difference between the two? When do I use one over the other? Are there any others I can use?
Forums Home / Wijmo / General Discussion
Posted by: dharric on 18 January 2019, 3:26 am EST
Posted 18 January 2019, 3:26 am EST
I would like to set the grid row. It appears I can use both selection and selected. What is the difference between the two? When do I use one over the other? Are there any others I can use?
Posted 20 January 2019, 6:01 pm EST
Hi,
While setting the selection property, it internally calls the select method so there is virtually no difference between the two. The only difference is that when using select() method we can pass an additional boolean parameter which specifies that whether we want to scroll the grid to the new selection or not whereas in the case on setting selection property grid is always scrolled to the new selection.
Hope this clears!! Please let us know if you still have some confusion.