Display Data in a Grid


Author
Message
Michael Reese
Michael Reese
Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
I am new to StrataFrame and have a question. I have form with a Infragistices grid. I performed the following steps. I can see the BO columns however, I need to pull back data?

1) Placed the customerBO on the form.
2) Placed a BusinessBindingSoruce on the form.
3) Set CustomerBO in the  BusinessObejct to the BusinessBindingSource
4) Placed an Infragisitcs grid on the form
5) Set Datasource to BusinessBindingSource in the grid properties.

Michael

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
The only thin you are missing is populating your business object.  A business object does not jsut inherantly bring back all of the data from the server.  This would be extremely costly on bandwith, especially for larger databases, and would extremely limit the scalability of an application.  This type of behavior would be akin to a language such as Visual FoxPro...and would come with many of the network limitations and data corruption issues.  When working in .NET, it is best to operate in what is called a disconnected data set environment.  This actually gives you far more flexibility than operating in a connected or static open file environment.

In short, if you are not using the BrowseDialog control to retrieve data from the server dynamically, you will need to populate your business object with some records before they will appear within the grid.  You can do this many different ways, but if you just want to see it in action, create a simple fill method...you can place this code in the CustomersBO business object in the Data Retrieval region.

Visual Basic
Public Sub FillTop100()
    Me.FillDataTable("SELECT TOP 100 * FROM Customers")
End Sub

C#
public void FillTop100()
{
    this.FillDataTable("SELECT TOP 100 * FROM Customers");
}

Once created, just call the method on the instance of the Customers business object and it will load the top 100 records into your grid.


Michael Reese
Michael Reese
Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
Got it. Could I use you 3 party example to enable Infragistics controls or are you planning to subclass them?

Michael

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Yes you can.  Just FYI, we are going to create an Infragistics wrapper.  We have established a good relationship with the company and are planning to have native Infragistics support within the framework.  As for the timeline, I cannot give you an exact date.  But this has been approved and we will be allocating development time to create a complete Infragistics wrapper with Application Styling support and all Smile
Michael Reese
Michael Reese
Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
Ok great. Then I will purchase the product. Lot's of cash tied up in Infragistics!  So you cannot not estimate when Infragistics support will happen (like the next month or so?) Also is the product in beta or fully released? Not to stuff too much into this thread but do you offer security example scenerios?

Michael

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
you cannot not estimate when Infragistics support will happen (like the next month or so?) Also is the product in beta or fully released?

The Infragistics wrapper will not be included in the 1.5 release released in September (which I will talk about more in a minute) but we will be starting the wrapper soon after the 1.5 release.  When the basic controls are created we will post them on the website for download.  The wrapper will continue to grow for a good while after that.

Also is the product in beta or fully released?

The product has been fully released for quite some time now (November 7, 2005..the same day as Visual Studio 2005).  We just provide frequent updates.  This last update ended up turning into a lot of major enhancements (including the security add-ons and the Middle Tier Enterprise Server) so we left it in a "pre-release" state until we release 1.5.  Though all of our existing users are developing on the 1.4.1 for production, which is just fine. 

Not to stuff too much into this thread but do you offer security example scenerios?

The role-based security add-on will be available in the 1.5 release of the framework and is a robust and complete security solution.  It is as granular as field level, which can be set on the business object, this way security does not have to be manually checked everytime you reference the field.  You can also control security by form access, field access, add, edit, and delete.  Additionally, we provide all of the end-user interfaces such as the user maintenenace, role maintenance, and context restriction maintenance (allows permissions to be further inforced by timne blocks and workstations).  We even provide the documentation for you to give to your end-users on how to use the dialogs we provide.  There will be examples that come with this as well.  On top of all of this is auditing that can easily be configured all the way down the field level and even be turned on for a single user if required.  This is very granular as well, but is very easy to implement and is really requries nothing more than setting a few check boxes.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search