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
3555
What event do I need to handle this..
posted

I have added a valuelist column to my grid, with values from a dataset.

ErosionModel = grdGenericPercentBrand.DisplayLayout.ValueLists.Add("ErosionModel");

ErosionModel.ValueListItems.Add(erosionModelDataID, erosionModelRateName)

 

What event should I use to capture the erosionModelDataID of the valuelis from that given cell?  I need to populate other cells on the grid based on this value.

 

 

Parents
  • 45049
    posted

    InitializeRow is likely the event you want to use.  It's raised when the row is first added through data binding, and is raised again when the grid is notified that the underlying data object was changed.  The Value property of a cell in your column will contain your data key value ("erosionModelDataID" in your case).

    By the way, the code you've included here creates the value lists and stores it in the grid's ValueLists collection, but doesn't assign it to any columns of the grid.  You'll have to set a column's ValueList property to establish that association, assuming you haven't already done so.

Reply Children