Lightswitch: Enable grouping on Grid

Home » Lightswitch » Lightswitch: Enable grouping on Grid

Lightswitch: Enable grouping on Grid

| Lightswitch | June 13, 2013

Man, it has been a long time since I’ve been here… I need more time like everyone ;)

A few months ago we started a new LightSwitch project for a new ERP system and our customer was hooked on grouping inside a datagrid, so we had to find a way to make this possible in LightSwitch. We didn’t want to use some 3rd party control, so we looked inside the silverlight grid and enabled his grouping capability!
grouping LightSwitch


As you can see grouping is enabled in the standard LightSwitch grid!


Here is the code for the code behind of the screen:

CustomerGrid is the name of the grid.

Then create a new class GridGrouping.vb and add this:


Have fun!



- Can’t get it to work with numbers…

- If paging is enabled the grouping will only work for the page you are on.


About the author

This author has yet to write their bio.

2 Responses to "Lightswitch: Enable grouping on Grid"

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Current day month ye@r *

 Vraag het ons LIVE
Powered by PureChat.com