Hi Telerik Team,
I think I've asked this question in the past, and when I think I understand it, something happens and then I don't. Here is what I'm thinking
CurrentItem = The Current Item in the grid (and there can only be on), that is not necessarily selected (i.e. clicked on by the mouse)
SelectedItem(s) = Any Items that have been clicked by the mouse.
I'm trying to Select a row (as if it were clicked by a mouse) but that doesn't seem to work.
I've done the following:
_radGridView.CurrentItem = item;
_radGridView.SelectedItem = item;
I think I've asked this question in the past, and when I think I understand it, something happens and then I don't. Here is what I'm thinking
CurrentItem = The Current Item in the grid (and there can only be on), that is not necessarily selected (i.e. clicked on by the mouse)
SelectedItem(s) = Any Items that have been clicked by the mouse.
I'm trying to Select a row (as if it were clicked by a mouse) but that doesn't seem to work.
I've done the following:
_radGridView.CurrentItem = item;
_radGridView.SelectedItem = item;
and
_radGridView.SelectedItem = item;
_radGridView.CurrentItem = item;
_radGridView.SelectedItem = item;
_radGridView.CurrentItem = item;
Unfortunately, I can't seem to get the item to be "Selected". I have checked that the CurrentItem and SelectedItem are indeed that same object. The SelectedItems Collection has only one object, and it is the SelectedItem object. However, the selected item is not selected/highlighted. I still have to click it with the mouse.
Also, after setting these properties, I'm calling:
_radGridView.ScrollIntoView(_radGridView.CurrentItem);
The ScrollIntoView() only works periodically and doesn't work more than it does.
Here is what I would like to accomplish. I have a grid with items in it. The user wants to add a record, (via another dialog, not adding a row directly to the grid perse). I take the record they have added from the dialog and add it to the grid's Items collection and the collection is sorted. The grid should then actually select (as if clicked) the row that was added, and make sure it's visible to the user. How do I accomplish this?
Thanks for your help!!
Also, after setting these properties, I'm calling:
_radGridView.ScrollIntoView(_radGridView.CurrentItem);
The ScrollIntoView() only works periodically and doesn't work more than it does.
Here is what I would like to accomplish. I have a grid with items in it. The user wants to add a record, (via another dialog, not adding a row directly to the grid perse). I take the record they have added from the dialog and add it to the grid's Items collection and the collection is sorted. The grid should then actually select (as if clicked) the row that was added, and make sure it's visible to the user. How do I accomplish this?
Thanks for your help!!