none
Childrow RowState RRS feed

  • Question

  • I'm using Infragistics UltraWebGrid control to display hierarchical data.

    User is allowed to modify all fields in the parent table and some rows in the child table.

     

    The rowstate of the child rows are displayed as "Modified" though they or the parent rows are not modified.

    Why is it doing this?

    ---------------------------------------

             DataView dv = new DataView(ds.Tables[0], string.Empty, string.Empty, DataViewRowState.CurrentRows);
                 
                for (int i = 0; i < dv.Count; i++)
                {
                    //Get child rows for the current parent row
                    DataRow[] childRows = dvIdea.Row.GetChildRows(dv.Table.DataSet.Relations[0]);
                    string x = childRows[0].RowState.ToString();

               }

    ---------------------------------------

    The rowstate of all childrows remain "Modified".

    Is there any other method to find the true rowstate for childrows?

    Thursday, January 17, 2008 9:30 PM

Answers

  • It means that some code has changed rows in your child table. It could be grid or could be some other place. You could try to debug the code to see at which stage rows change their state and see if you could avoid it. You could reset state of the rows calling AcceptChanges method of the DataTable, but I would suggest investigating it first.

     

    Friday, January 18, 2008 11:17 AM
    Moderator