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
1075
Find newly added row
posted

 Hi!

I am adding rows to datasourse of the grid and want to get newly added rows (to select or mark them). How to do this?

I am adding rows like this:

//copy old row to new row with a different name

            DataRow newDataRow = newDataTable.NewRow();
            foreach (DataColumn dataColumn in newDataTable.Columns) //init from input
            {
                newDataRow[dataColumn.ColumnName] = oldRow[dataColumn.ColumnName];
            }
            newDataRow["Name"] = newName;
            newDataTable.Rows.Add(newDataRow);

 

ultraGrid1.Rows[newDataRow].Selected = true; //this is not compiling

Parents Reply Children
No Data