locked
Is there any DataGrid equivalent in WPF? RRS feed

  • Question

  • I can't seem to find any WPF control that would operate similar to a DataGrid control -- ListBox doesn't really support columns and column headers.  What are my options here?

     

    Thanks, Rob.

    Wednesday, October 17, 2007 4:22 PM

Answers

All replies

  • The answer is no.

    However you can host Windows Forms Controls in WPF:

    http://msdn2.microsoft.com/en-us/library/ms751761.aspx

    http://msdn2.microsoft.com/en-us/library/ms742875.aspx

    http://msdn2.microsoft.com/en-us/library/ms750944.aspx

     

    or

    Some capabilities of the DataGridView control are reproduced with the ListView and GridView controls.

    Wednesday, October 17, 2007 4:48 PM
  • WPF is actually lack of datagrid control but tehre is an available free control that you can find at following adress:

    http://xceed.com/Grid_WPF_Intro.html

     

    Personnlay I have downloaded it but not time to use it yet.

     

    regards

    serge

    MCAD.NET

     

    Wednesday, October 17, 2007 4:53 PM
  • The closest thing to DataGrid in WPF is a ListView using a GridView. You can read all about that here in the SDK.

     

    HTH,
    Drew

     

    Wednesday, October 17, 2007 5:03 PM
  • Infragistics also has a datagrid, which is available for free here:
    http://www.infragistics.com/Default.aspx

    WinForms can be intreoped (using the Crossbox technology) but that won't work on the web, and also you cannot use any of the WPF goodies, like transforms, transparency, etc...

    Using templates, you can transform a ListView to look like a datagrid with a limited feature set.

    HTH,
    Laurent
    Wednesday, October 17, 2007 5:31 PM
  • Serge,

     

    Downloaded, but not installed -- can't believe this is free??  Don't understand why the download was 81MB ??

     

    Rob

     

    Wednesday, October 17, 2007 6:06 PM
  • HI rob,

     

    Yes totally free..its a big set of complete tools...

    you juste need to register for beeing able to download it ..

     

    serge

     

    Wednesday, October 17, 2007 6:20 PM
  • No deployment restrictions?  Ok with click once deployment (full trusted)?

     

    100% managed?

     

    Wow, if so, amazing!

     

    Wednesday, October 17, 2007 6:26 PM
  • Thats the fact yes, manages, no restriction on deployement....

    I did not have tme to test it yes, but it sounds for me a bit too much complicated for my aplication case for operating interface..This a first guess according to screen shot I have seen.

     

    If you test it, let me know how you feel. Implementation is not straight forward I would say..

     

    regards

    serge

     

    Wednesday, October 17, 2007 6:37 PM
  • Rob,

    Make sure you check the Infragistics grid before you make decisions. It's a great alternative, to say the least, to the XCeed product.

    Greetings,
    Laurent
    Wednesday, October 17, 2007 6:42 PM