How do I get the actual display text from a datagrid cell? This is the actual value that has been either been converted though the Field.Converter or Field.Format properties.
I tried:
cell.Record.GetCellText(cell.Field);
where cell is an instance of the Cell class but this does not give me the actual rendered text.
Hello Klaus,
Thank you for your post.
I have been looking into your requirement and I am not sure that I understand it correctly. Would you please provide me with more details about your issue and what you want to achieve? I created short sample application based on your scenario. Would you please modify it with the functionality, that you are using, so it reproduces the issue. This way I would be able to further investigate this for you and provide you with more detailed information on this matter. Also you can take a look at the following forum thread, where similar functionality is discussed:
http://ko.infragistics.com/community/forums/t/45394.aspx
Looking forward to hearing from you.
Thanks for your response.
I probably would not qualify this as an issue since there must be a way to do this. Let me try this again:
Say I have a property of type double bound to one of the columns in the grid. Say the actual value of this property is 10.123456789 but I pass the provide the Field a Format of 0.00E+0, causing this value to be rendered as 1.01E+1.
If I call cell.Value, I get 10.123456789. If I also call cell.Record.GetCellText(cell.Field), I still get 10.123456789. What I want is a method that returns 1.01E+1 since this is what has been rendered.
Hope this helps.
I have been looking into it. I modified my sample application based on your scenario and I could not managed to reproduce the behavior that you have described. I was able to get the actual displayed value from the Cells by using GetCellText(cell.Field) method. If you are not able to reproduce the issue with the attached sample application, would you please modify it with the functionality, that you are using, so it reproduces the issue. I attached the sample application and a screenshot that illustrate the behavior on my side.
Please let me know if you require any further assistance on the matter.
Hello,
I am just checking your progress on the issue that you are having.
If you require any further assistance please do not hesitate to ask