Tuesday, July 24, 2007

Using ListView as DataGrid with the help of GridView

There is no native Data Grid in WPF.But we could achieve the behaviour with the help of ListView and GridView.

ListView has a property called View.Set a GridView to that property to get data displayed as DataGrid

Basic details
Sort columns upon header click

Workarounds
Control column width upon dragging

2 comments:

  1. Oi, achei teu blog pelo google tá bem interessante gostei desse post. Quando der dá uma passada pelo meu blog, é sobre camisetas personalizadas, mostra passo a passo como criar uma camiseta personalizada bem maneira.(If you speak English can see the version in English of the Camiseta Personalizada. Thanks for the attention, bye). Até mais.

    ReplyDelete
  2. Could you please comment in English

    ReplyDelete