Sort DataGridColumn with IP Address

Posted 22 days ago by Avatar Sebastian Wrba - M.Sc., WSE GmbH

Hi there, 

I have DataGrid whitch is binded to a MySQL table. I have defined the rows using: DataGridTextColumn Binding="{Binding Path=ip}".

When I try to order the DataGrid by clicking the Header it sorts the IP row like a string and so the results are not what I had expected.

What can I do?

thanks a lot

Comments (3)

Posted 21 days ago by Actipro Software Support - Cleveland, OH, USA


For questions on the native WPF DataGrid, you should post in the Microsoft forums for WPF controls instead since they are the authors of that control.  But doing a quick web search, I found this article that may help:

Actipro Software Support
Posted 21 days ago by Sebastian Wrba - M.Sc., WSE GmbH

Thanks so far, 

but you get me wrong, I use the Actipro Control datagrid:ThemedDataGrid


<datagrid:ThemedDataGrid SelectionUnit="FullRow" ItemsSource="{Binding}">
<datagrideditors:DataGridTextColumn Binding="{Binding Path=ip}" >


Posted 20 days ago by Actipro Software Support - Cleveland, OH, USA

Hi Sebastian,

The ThemedDataGrid just has a couple free open source extensions we made for the native WPF DataGrid control.  It's not a true custom control created by us like the other controls that we sell.

Actipro Software Support
Information The latest build of this product (2018.1 build 0674) was released 4 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.