リストのリストを表示しようとしているだけのようです。
データベーステーブルを次のように単純化できます。
Id | ColumnIndex | RowIndex | Value
クエリは次のようになります。
GroupedValues = table.GroupBy(x => x.ColumnIndex);
次に、次のように、ItemsPanel を水平方向の StackPanel に設定し、ItemTemplate を標準 (垂直) の ItemsControl に設定して ItemsControl を使用できます。
<ItemsControl ItemsSource="{Binding GroupedValues}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<ItemsControl ItemsSource="{Binding}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Value}" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
このコードはテストされていませんが、アイデアが得られることを願っています。