I am new to Infragistics, and I have a simple XamDataGrid binded to a List<Items>.
I want the user to be able to expand any row, and see more details regarding the selected row in the expanded area beneath the row.
Can someone demonstrate how to do it please?
If you have in mind something like "Row Details" feature, this is not a built-in functionality yet in the XamDataGrid. However, one way that you can achieve this is with some custom field positioning and styling. I have created a small project for you which is attached to this post. Below you can see a screen capture of the result you will achieve.
This solution seems to be built using VS 2010. I'm able to open the project using VS 2008 but unable to run it. Can you provide this sample project compiled using VS 2008 and make it available via this post.
Many thanks for your help.
Are you trying to open it from the solution file or the project file?
Please note that you should be able to open it from the Project file with VS2008.
For your convenience, I have attached this with a VS2008 solution file.
Alex, Thanks for this. I have a specific question about this functionality. What I'm trying to achieve is a little bit different from the sample, but it demonstrates that RowDetails kind of functionality could be implemented using XamDataGrid.
Now to the problem I need some help.
I have a XamDataGrid bound to an observableCollection of a Business object. I have one of the columns in the Grid as a ComboBox column using XamComboEditor. Items in the Cobo are bound to another property on my ViewModel. Changeing the SelectedValue in the Combo would Save the Value of the assignment for that record in the database. Now, this Save operation could fail due to some additional logical check that is in place. So, One I change the selection, I call a Save Command in my ViewModel and this will execute the Save method in the Data Library. The result of the Save method call is another object which has details whether the Save operation was successful or failed due to some other logical check we have in place.
For the above problem, How can I just expand the row on which the Save method is executed, in other words, the selected Combo value is changed and show the Save operation status? Can you provide me some guideline to achieve this kind of functionality. Any help is very much appreciated as always,
I apologize for the delayed response.
As per your requirement, one option is to use a boolean property that you can bind the row details to. The content of the row details element you can get from the operation status property of your data item. The overall approach is similar. I have created another sample that gets closer to your requirement. (Note that it does not have a solution file. You can open it from the project file).