Wednesday, January 21, 2009

Own sorting in Infragistics' ultraGrid

My application's user submitted request to add possibility to change way how decimal columns are sorted in grid.

He wanted sort decimals by absolute values.

Turned out it is pretty easy to implement using IComparer interface + grid SortComparer property.

Final effect:

Example code:


Labels:

How to set programically Infragistics ultraGrid headers groups

Infragistics ultragrid is very flexible control.

One of nice option is header groups and levels which is not very common knowledge.

Grouped columns look like this:

 


To archieve that the easiest way is use built-in grid's designer.

But if you want to do the same in runtime (set groups programically) you can look at below code snippet:



Labels: