CSLA .NET

From Rockford Lhotka's Expert C# 2005 and VB 2005 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

Grid Binding

Last post 06-27-2007, 12:11 PM by Pieterv. 2 replies.
Sort Posts: Previous Next
  •  06-27-2007, 6:24 AM 15713

    Grid Binding

    Hi everybody,

    I'm fairly new to CSLA and was wondering which object to bind to a datagrid?
    I does not need to be editable, just a list of records in a table.

    I've used ReadOnlyListBase but are only able to get 2 columns back.
    How do I retrieve the rest of the table or at least more than 2 columns?

    Also, how would I then filter the datagrid? I used to use a DataView, will it work the same way?

    Thanks!

    -Pieter

  •  06-27-2007, 9:07 AM 15718 in reply to 15713

    Re: Grid Binding

    For sorting and filtering you have a few choices.

    Rocky includes SortedBindingList and FilteredBindingList in Csla. One of the nice things about these 2 is that they are composable - you can take one and use the other against it.

    Limitation - only single property sorting exists.

    I use the ObjectListView over in CslaContrib. It is an excellent piece of code and works for multiple property sorting. It also does filtering.Search this forum for sample code on how to use it.

    Joe

     

  •  06-27-2007, 12:11 PM 15730 in reply to 15718

    Re: Grid Binding

    Thanks Joe. Will check it out.

    I got the Grid/Multiple columns issue sorted out as well.Classic case of fingers in gear, brain in neutral Stick out tongue [:P]

View as RSS news feed in XML

Please contact Magenic for your .NET consulting and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems