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
700
Canot refer the value of Formula column
posted

Hi,

I have a column in the table that is assigned to the Grid.

Value for this column is derived by a formula thru code in the InitializeLayout event.Something like this e.Layout.Bands[0].Columns["AVERAGE1"].Formula = "Formula here";

But I cant get the value of this column in the Initialize row event. Even if get the Datasource back into a table like this DataTable dt = (DataTable)Ultragrid1.DataSource;

How to solve this poroblem ?

Thanks.

Parents
No Data
Reply
  • 69832
    Offline posted

    UltraCalcManager fires the CalculationsCompleted event after the cell values have been calculated. You can get the cell value via UltraGrid.Rows[x].Cells[y].Value, where x is the row index and y is the column key.

Children
No Data