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
1070
ultrawebgrid - copy the selected to new row
posted

In ultrawebgird copy the selected row to new row (which is blank). I have applied group by.

 

Parents
  • 49378
    posted

    Hi DayanaArul,

    As far as I can understand you want to be able to copy some row to a new row, i.e add a new row with the data of an existing one.

    Given that you have grouped the data on your grid you should be able to add a new row by using something like :

            if (UltraWebGrid1.DisplayLayout.SelectedRows.Count > 0)
            {
                UltraGridRow row = new UltraGridRow();
                row.CopyFrom(UltraWebGrid1.DisplayLayout.SelectedRows[0]);
                UltraWebGrid1.DisplayLayout.Rows.FromKey(row.Key).Rows.Add(row);
            }

     

    Keep in mind that the above code adds a new row to your grid, not your data source. Note the nested structure of the rows when the grid is grouped by a column.

    You may be interested in the following discussion regarding grouping in UltraWebGrid:

    http://news.infragistics.com/forums/p/12442/64791.aspx#64791

    Please contact me if you require further assistance.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://es.infragistics.com/support

     

Reply Children
No Data