If you have a cell that's native data type is some sort of integer and you want to set the text of cell to some text value, operations slow down by about 800%.Say you have a cell like school_id that is an int and in an initializerow event you do this:e.Row.Cells.FromKey("school_id").Text = "";ore.Row.Cells[0].Text = "";Things slow down BIG BIG Time. How do you do a cast or speed this up?Thanks!
What if I can't use .Value because if have a ValueList and need the .Text property?
I need this because I hand the data to the printing-routine which needs the text in the cells and not the value:
string[] sarrData = new string[iCount];
foreach (UltraGridRow row in grid.Rows)
{
foreach (UltraGridCell cell in row.Cells)
sarrData[cell.Column.Index] = cell.Text;
}
Or is there an other way to get the grid-data as displayed into a string-array? Using the .Text property slows the code down by a factor of 10.
Manuel
Hunch: Try setting e.Row.Cells[0].Value = "";
HTH