Two questions:
1. I don't want field chooser button to be visible, but want to invoke field chooser from context menu.
2. I would like to hide a record selector (only data fields to be visible)
Is above possible and if it is, how?
Thank you
Hi Dierk,
1. If you don't want to use the FieldChooserButton, you can invoke the FieldChooser in 2 ways:
- By using ShowFieldChooser command as follows:
xamDataGrid1.ExecuteCommand(DataPresenterCommans.ShowFieldChooser);
- By using ShowFieldChooser method as follows:
xamDataGrid1.ShowFieldChooser();
2. In order to hide the record selector you can set the RecordSelectorLocation property of FieldLayoutSettings to None.
Hope this helps.
Thanks. That was easy.