In an UltraGridRow, if you programmatically assign something to cell.text (i.e. MyRow.cells(0).text = "ABC"), when will the corresponding cell.value (MyRow.cells(0).value) get updated to have the "ABC" value?
Hello Ron,
Thank you for contacting Infragistics!
The Cell.Text is the text/formatted representation of the value and updating the text is not expected to update the value. Instead you will want to set the Cell.Value which will then update the Cell.Text as needed.
HI Mike, Thanks for your response. I know that the cell.text is the formatted text version of what is in cell.value, however, I'm curious as to what would happen if you programmatically assigned cell.text. Would it ever propagate to cell.value? If so, how and when?
Ron,
I am curious what prompted the question, is there something not working as you expect in the grid? If so we may be able to provide some guidance if you describe what it is that you are seeing.
Hi Alan, no I don't have an example. I was just asking to get a fuller understanding of the interaction between cell.text and cell.value. Your response helped with my understanding of this. Thanks so much.
I wouldn't expect code setting the Text property of an UltraGridCell to compile as there is no setter for the property. I even checked the code as far back as 2008 and there wasn't a setter then.
Looking at the code, if the cell is in edit mode the Text property of the cell returns the text from the editor and if it isn't in edit mode it returns the value that the GetCellText method of the Column returns.
Do you have an example where setting the Text on an UltraGridCell does work?