Menu

Databinding support?

2006-09-26
2013-04-22
  • Kariem Mohamed Abd El-Fattah

    Hi
    This framework rocks :) thank you guys.
    I want to know if databinding for windows forms is supported with sorting and filtering support.
    thanks

     
    • Richard Beauchamp

      Hi,

      I haven't worked much with windows forms apps, but I have worked with ASP.NET quite a bit. Throughout our app we bind to a DataGrid a list of objects or a DataSet that has been returned by DomainObjects. The code typically looks like:

      DataSet results = QueryFacade.FindDataSet<SearchType>(criteria);

      dataGrid.DataSource = results;

      dataGrid.DataBind();

      You can then use the built in features of the DataGrid for sorting, paging, etc.

      Hope this helps,

      Richard

       
    • Kariem Mohamed Abd El-Fattah

      Thanks for your reply.
      I have another question:
      In the features page it is said that the queries are made againest the objects not the database,Because of that i have to load the entire database in memory to make queries using domainobjects query language and i think that is not effecient,Right?Correct me if i am wrong.
      Thanks

       
    • Dario

      Dario - 2006-09-29

      Hi Kariem:
      The feactures page tries to explain that you don´t have to write "sql queries" to get any set of data. Using the object model domain objects will build the "sql query" for you.

      Regards
      Dario K.

       
    • Kariem Mohamed Abd El-Fattah

      Very good,Thanks again.
      BTW there is "BindingListView" it is a small component that wraps your object List<> with a sortable,filterable,searchable List and this list is bindind with the datagridview.

       

Log in to post a comment.