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
245
Convert Wingrid rows into a collection.
posted

Hi,

I want to convert all the rows in the wingrid to the new List.

List<class> newcl = new List<class>();

This above class contains all the columns names corresponding to the ultragridrow

Intially i got all the data from the wingrid to datadgridrow

List<UltraGridRow> ugr = new List<UltraGridRow>();

 foreach (UltraGridRow row in grid.Rows)
   {
        ugr.Add(row);
   }

From this ugr i don't know how to convert to the new List. I need some sample code for this solution.

Parents
  • 45049
    posted

    This looks to be a similar question that you asked here:
    http://forums.infragistics.com/forums/t/23604.aspx

    What are you trying to accomplish here?  You can likely get a list of your underlying data by inspecting the grid's DataSource, without needing to go through the grid's Rows collection.  For that matter, the grid's Rows collection is already a strongly-typed collection of UltraGridRow objects.

    If you can provide us with a better idea as to what you're trying to do, we can better guide you.

Reply Children