Listview and BO Synchronization


Author
Message
Torsten Weggen
Torsten Weggen
StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)
Group: Forum Members
Posts: 4, Visits: 21
Hi folks,



I'm new to strataframe and now in my evaluation phase. I took one form from my actual VFP-Application and want to do exact the same thing with .NET / strataframe. I think this is the best way for evaluation because you cross a lot of real world problems when doing it this way. My application is written with a Vfp-Framework not known in the english world (its german), but it uses in many ways the same approach to do things like strataframe do.



OK thats the preliminarys, now my question(s):



I have a form which is dealing with invoices. I put all the textboxes and checkboxes on my form, coupled them to the BO and everything works fine. The next step was to add a listview to the form to scroll through the invoices. (See the screenshot)







My first problem is the synchronization between listview and the data entry controls. My first try was setting the listview-property "AutoNavigateToSelectedRecord" to true but nothing happend. The next thing was using the "ItemSelectionChanged" method with the code





private void listView1_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)

{

int primkey = (int)e.Item.Tag;

rechBO1.NavigateToPrimaryKey(primkey);



}





Navigation works fine with this, but what should I do, when I use a navigation-button in the form ? The "Selection-Row" of the listview is not in synch when I navigate with the BO-Navigate-Methods.



Next question is what to do with the listview, when I add a record or change the content of one record and save. Changes are not visible in the listview. Do I really have to repopulate the whole listview on every change ? This is really not the fastest thing when I have 10000 invoices in my database...



And the last question for today: The listview has a property "AutoColumnSort". In the documentation is written, that turning this property to true allows sorting by click on the listview header. But when I set this to true, my form does not start any more and after a while I get a COM Timeout-Message. Is this a bug or a feature ?



Best regards

Torsten Weggen

indisoftware GmbH

Hanover, Germany



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