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
215
UltradGridList Default value on insert based on another cell.
posted

I'm new to Ultragrid.  I'd like to string together a default value in a cell on an Ultragrid based on another value on INSERT. It works if I use the property on the designer but

I can't add the additional value.  Something like:

UltraGridList.DisplayLayout.Bands[0].Columns["YES_NO"].DefaultCellValue =  "The value for Joe is: + 'N';

I tried using something like this, but I don't know that the row will be zero.

UltraGridList.Rows[0].Cells["YES_NO"].Value = "The value for Joe is: " + CHOICE;

  • 12480
    Offline posted

    Hi Tony,

    You can accomplish this by using the InitializeRow event on the grid. You can set the value of the dependent cell in this event, and use the value of the cell on which it depends to fill it out.

    Please let me know if you have any questions.