Anyone using DevExpress Grid?


Author
Message
Robert Linton
Robert Linton
StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)
Group: Forum Members
Posts: 13, Visits: 49
Wondering if anyone here is using DevExpress components, specifically their Grid Control, with SF?

I'm having a few issues. One is that the BO's current record does not seem to be staying in sync with the focused row. For example, the attached screen shot shows the "Hindi" row selected, if I press Delete on the MaintenanceFormToolStrip, the first row ("German") will be deleted...not "Hindi" as expected.

Secondly, if I edit "Hindi" to "East Hindi", the Save button is not Enabled as usual when I leave the row, yet, when I exit the form, it automatically asked me if I want to save the changes. Upon confirmation, all changes are saved correctly.

Finally, I cannot use the design time editor because the component does not recognize the BO as a datasource...I have to assign the datasource programatically...would be nice to have design-time support...but that's secondary.

Any clues?

TIA,

Rob

Attachments
DeleteProblem.jpg (335 views, 80.00 KB)
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
We are also going to release a DLL that completely wraps the DevExpress controls.  The wrap provides seamless integration for teh DevExpress controls into StrataFrame.  This will be available the same time as the LinkManager. StrataFrame has two interfaces that allow you to interface any third-party or custom control into the framework: IBusinessBindable and ILocalizable.

If you do not need localization support and need binding, then only the IBusinessBindable interface is needed.  We will let you know as soon as the DevExpress wrapper is available.  If you need to do something immediately let me know and I will send you a sample on how to implement the IBusinessBindable interface. Wink

As for your current situation the problem you are having with the delete is because the Grid is not navigating the business objects record index.  There are a lot of ways to move the record pointer of the BO.  When the grid repositions itself, you will need to capture an event to Sync the BO record.  There are a lot of ways to reposition:

MyBo.Move...()
MyBo.Navigate()
MyBo.NavigateToPrimaryKey()
MyBo.SeekToPrimaryKey()

Larry Caylor
Larry Caylor
StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K
Any plans for an Infragistics wrapper?  If not, is the IBusinessBindable interface failrly easy to implement on multiple controls?

-Larry

Robert Linton
Robert Linton
StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)
Group: Forum Members
Posts: 13, Visits: 49
Thanks Trent,

For the benefit of anyone else using DevExpress, I'm handling the FocusedRowChanged Event to keep things in sync:

private void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
{
   // Get the current focused row
   DataRow dr = gridView1.GetDataRow(e.FocusedRowHandle);

   // Sync the BO
   languagesBO1.SeekToPrimaryKey((int)dr.ItemArray[0]);
}

Rob

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
Great!  Thanks.
Kevin Lingofelter
Kevin Lingofelter
StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)
Group: Forum Members
Posts: 77, Visits: 804
Larry Caylor (03/16/2006)
Any plans for an Infragistics wrapper?  If not, is the IBusinessBindable interface failrly easy to implement on multiple controls?

I'm curious about this too. Any news?

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
We are going to release a wrapper for DevExpress first and then we will look at adding a wrapper for the Infragistics classes.  You can implement the IBusinessBindable interface yourself if you do not want to wait.  The answer is, "Yes," we will ultimately release a fully integrated wrapper for Infragistics, I just cannot give you an exact timeline.  But hopefully we will have this available by the end of April beginning of May.
Larry Caylor
Larry Caylor
StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K

Great!  In the meantime could you provide a sample on how to implement the IBusinessBindable interface?

 

-Larry

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
If you will be binding to a grid, you really do not need the IBusinessBindable interface since the grid will interact with the CurrentDataTable or CurrentView as its datasource.  However, I would be more than happy to send you a sample on how to implement the IBusinessBindable interface.  What language do you use, I can't remember BigGrin
Larry Caylor
Larry Caylor
StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K
A VB example would be helpful. I wanted to get an idea of what is involved in implementing the interface for an Infragistics UltraTextEditor or UltraComboEditor control.

-Larry

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