Hi there,
is it possible to set the focus on a field in a combobox_selecteditemchanged event?
not just isSelected = true because the Field is then selected but not in View like i need...
could you please help me?
regards
Cloud
Hello Cloud,
Instead of xamDataGrid1.ActiveRecord you can use xamDataGrid1.GetRecordsInView(true).FirstOrDefault(). This way it is not needed to have an ActiveRecord.
Hope this helps you.
but what if i do not choose a record first? the active record is null and i get a exception.
why is there no BringFieldIntoView-function?
Thank you for your post. I have been looking into it and I can suggest you call the XamDataGrid’s BringCellIntoView method after setting the Field’s IsSelected Property to true like this:
xamDataGrid1.FieldLayouts[0].Fields["MyField"].IsSelected = true; xamDataGrid1.BringCellIntoView((xamDataGrid1.ActiveRecord as DataRecord).Cells[xamDataGrid1.FieldLayouts[0].Fields["MyField"]]);
In order to scroll to the selected Field. Please let me know if this help you or you need further assistance on this matter.
Looking forward for your reply.