Hi Gopi,
The SelectedRecordsChanged event will get fired for three different actions such as Added, Removed and Reset. You can check this out in the e.Action.
The reason for the weird behavior which you are getting while traversing upwards, is because, when you move up, the current record will get added to the SelectedRecords collection and then the previously selected record will be removed from the collection. So, the action that was last checked is for Removed, so this returned the previously selected and not the current one.
When you traverse downwards, it vice-versa, the record will get removed and then current record will be added to the SelectedRecords collection.
Please add the below code, to get this working properly.
if(e.Action == SelectedRecordsChangedType.Added)
{
textBoxComp.Text = e.SelectedRecord.Record.GetValue("CompanyName").ToString();
}
Let me know if you have any further questions.
Thanks for using Syncfusion Products.
Regards,
Rajagopal