New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.ArrayList list = new ArrayList (gridData.Rows.Count); foreach (DataRow row in gridData.Rows) { list.Add(AquadorNET.DataExtraction.GetIntFromDBObject(row["X"], -1)); } list.Sort(); int i = 0; while (i + 1 < list.Count) { if(list[i] = list[i+1] { list.RemoveAt(i); } else i += 1; }I did not run the above code, so I may have overlooked something, but this is similar to the technique we use the CreateUniqueEntries code in the GridDataBoundGrid FilterBar if you need to see some working code.
engine.SetSourceList(dataTable1.DefaultView);
or
engine.SetSourceList(new DataView(dataTable1));