DevExpress Grid and SF


Author
Message
Terry Bottorff
Terry Bottorff
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 448, Visits: 12K
I am using the latest version of DevExpress and SF in VS 2008. I created a BO and just by using a break point I found that it does have data in it. I also created a Custom Business Binding Source and put in the code so it does appear on my toolBox. I dropped the BO and the BBS on my form. I also have placed a DevExpress Grid on my form.

Using the little black arrow on the top right of the grid(forgot what it is called) I did the following steps:

1. Choose Data Source.

2. Add Project Data Source.

3. Choose Object as data type.

4. Found my BOLib, found my BBS and selected it.

5. It immediately created the databindingsource and put the columns that I want in the grid.

6. I looked at the columns and they have the correct field names in them.

7. Because of #5 and #6 I think the grid is set up correctly?????

8. Run project and the grid shows with the column titles but no data.



What am I missing? TIA.

Replies
Terry Bottorff
Terry Bottorff
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 448, Visits: 12K
Peter first I want to thank you for the help you are offering.

I put Me.MyBBS.BusinessObject.CurrentView in the watch Window and used the visualizer.....NO DATA?????? So obviously no data in the grid....?

This the my code for the form. I tried loading the data in the load and the new.

me.customers1.currentview Shows all the records in the sample customers database since all I did was a "Select * from customers".





Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Me.Customers1.fillalldata()

End Sub

Public Sub New()

' This call is required by the Windows Form Designer.

InitializeComponent()

' Add any initialization after the InitializeComponent() call.

'Me.Customers1.fillalldata()

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

' Break Point

End Sub

End Class





Scanning under my BBS I did run into this info which does not seem correct to me but I don't know how to fix it or if it is even wrong?????



CurrentRow{"The CurrentRow for table '[dbo].[Customers]' could not be evaluated because the CurrentRowIndex is out of range. Business object record count: 0. CurrentRowIndex: -1."}System.Data.DataRow



TIA.
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
Terry, did you download my sample and see if it worked in your development environment?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Terry Bottorff - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Terry Bottorff - 16 Years Ago
Terry Bottorff - 16 Years Ago
Terry Bottorff - 16 Years Ago
Peter Jones - 16 Years Ago
Terry Bottorff - 16 Years Ago
Peter Jones - 16 Years Ago
Terry Bottorff - 16 Years Ago
Peter Jones - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Terry Bottorff - 16 Years Ago
                     No problem, just wanted to make sure that it worked. Thanks. :)
Trent L. Taylor - 16 Years Ago
                     I replaced all the references from 8.2 to 9.1 and rebuilt the...
Terry Bottorff - 16 Years Ago
                         Well, you still have 8.2 references in either the designer file or the...
Trent L. Taylor - 16 Years Ago
                             OK thanks.........
Terry Bottorff - 16 Years Ago
Terry Bottorff - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Peter Jones - 16 Years Ago
Terry Bottorff - 16 Years Ago
Peter Jones - 16 Years Ago
Terry Bottorff - 16 Years Ago
Peter Jones - 16 Years Ago
Trent L. Taylor - 16 Years Ago
                 Thank you so much.
Terry Bottorff - 16 Years Ago
Terry Bottorff - 16 Years Ago
Terry Bottorff - 16 Years Ago
Peter Jones - 16 Years Ago
Peter Jones - 16 Years Ago
Terry Bottorff - 16 Years Ago
Trent L. Taylor - 16 Years Ago
                     I'll try it and let you know. Thank you very much.
Terry Bottorff - 16 Years Ago
                         No problem. :)
Trent L. Taylor - 16 Years Ago
Terry Bottorff - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Terry Bottorff - 16 Years Ago
                     When I started playing with the DevExpress Grid I put in the...
Terry Bottorff - 16 Years Ago
                         Terry,

This post confuses me as the sample I posted SHOWs...
Trent L. Taylor - 16 Years Ago
Terry Bottorff - 16 Years Ago
Terry Bottorff - 16 Years Ago
Trent L. Taylor - 16 Years Ago
                 Yes I did get it. Thanks.
Terry Bottorff - 16 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search