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
685
Retrieve the Row.Cells -->values from RowEventArgs
posted

Hi All,   

How to retrieve the particular Cell values from RowEventArgs e Currently I am trying as below

 

e.Row.Cells["Model"].Text , but the value are coming always Null for me

what I am trying here is update row after the rowinsertion over from Ultra-Win-grid side , for which I have written code in AfterRowInsert event as below

 

 

private void ultraGridViewHardware_AfterRowInsert(object sender, Infragistics.Win.UltraWinGrid.RowEventArgs e)

{

 

   if (e.Row.IsAddRow)//Check if you are in Add row of the grid

    {

      string model = e.Row.Cells["Model"].Text.Trim();

Here value coming always blank . where as if you check in debug mode  the e.row--> listobject->dataview having with all values  present .

please suggest me a way to retrieve the values that i have entered in New row in wingrid .

    }

}

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    AfterRowInsert fires immediately after the new row is created. So the user has not yet had a change to enter any values in the row and thus they will always be set to their defaults, which is probably null.

Children
No Data