Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Formatting string values in cells.
posted

Hi!

I need to format string values in order to put a constant string after the value such as "Employee Name: {0}" where {0} is the full name of the employee.

The thing is that I use a UltraDataSource to format the string values, but I think there is a better way to do it.

I used a UltraCalcManager to concatenate strings, but its slower than the UltraDataSource.

Any ideas?

Thanks, Luciano.

Parents
No Data
Reply
  • 1140
    posted

    I would edit the cell during the InitializeRow event.

    e.g.

    private void flagHeaderGrid_InitializeRow(object sender, InitializeRowEventArgs e)

    {

    e.Row.Cells["cell"].Value = "Value";

    }

Children