Hi Lars Berg,
Using the CurrentRecord property is a legitimate way of getting the current data record but you may try another approach for your scenario. Since every button is part of a GridViewRow you use can the button's DataContext property to get the DataRecord that you need.
The answer to your second question is trickier since there are two solutions. The first one is to place both the Button and the ComboBox in a single unbound column. In this case you can easily find your ComboBox. If you really need to have two unbound columns you can try the second approach which involves traversal of the visual tree. I wouldn't recommend this approach becase it is dependent on a particular visual structure that might change in the future. Since there is some code involved in implementing both solution I have created a sample project that illustates both approaches (you can find it attached to this post).
The first approach uses a custom RoutedCommand to execute the logic and to get access to the ComboBox.
The method that executes the command is called "CustomCommandExecute".
The second approach uses a simple handler, called "Button_Click", for the Click event. In that handler we use the FindElement method to find the needed ComboBox and execute the custom logic.
We have just released version 1.0 of our WPF suite which ships with documentation and API reference.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.