Hi there.
Is there any possibilities to get all the values of a xamdatagrid row and store it into an array/hashtable/something ? Since this morning I tried hard to get it but no way.
If someone could help me it would be great.
Thanks, Luc.
I hope so. Thanks again, have a good day.
Hello Luc,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi
Thanks indeed i forgot the ".value"
Thanks a lot, my problem is solve !
If you want just the value of the first Cell of the ActiveRecord you can use the first approach with a little modification. You can use the following code:
value =(xamDataGrid1.ActiveRecord as DataRecord).Cells[0].Value;
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi again.
I find way. Buts it is not really clean i think..
ArrayList ArrId = new ArrayList(); foreach (var item in (xamDataGrid1.ActiveRecord as DataRecord).Cells) { ArrId.Add(item.Value.ToString()); } System.Windows.MessageBox.Show(ArrId[0].ToString());
I'm still lokking for a better way.