Issues with CSLA and databinding to DataGridView

Issues with CSLA and databinding to DataGridView

Old forum URL: forums.lhotka.net/forums/t/4341.aspx


wilfreds posted on Wednesday, February 13, 2008

Hello everyone.

You can see this issue demonstrated in the Project Tracker program:
Go inn an edit one of the projects


As you can see the user has changed the height of the rows. Then continue with making a change in the "Description" field:

As you can see the height of the rows revert back to original height.

Is there a simple way to avoid this?

This is may seem like a minor issue, and it certainly is for the Project Tracker program. But in our program we display product pictures inn the grid allowing the user to adjust the height of the rows to see a larger picture. And to make things worse, when the user edits the amount fields in the rows, a total amount field inn the order header is also updated causing the grid to flicker while the user edits fields in the grid.

Any pointers to the right direction to solve the problem or comments is much appreciated.

Wilfred

JohnB replied on Wednesday, February 13, 2008

We are using the controls from DevExpress and have not come across this type of issue. I know from using the DevExpress controls, like many of the other third-party controls, there are literally hundreds of properties you can configure for a very granular control.

As for a solution, I would suggest that you look at what type of interaction you're trying to provide in the grid. I know that we did plenty of prototyping using the standard Microsoft controls and did not have any real issues.

Hope this helps,
John

ajj3085 replied on Wednesday, February 13, 2008

I'm not sure how to solve your particular problem, but I think the post title is misleading; this likely has nothing to do with Csla.

wilfreds replied on Wednesday, February 13, 2008

Thank you John for your reply. I may have to look for a third party grid control. But I was hoping I did not have to do that.

ajj3085, thank you for the comment. Sorry if the title is misleading, I just dont know. I have made no modifications to Rockys code so the behavior should be easy to reproduce for everyone. Please let me know if thats not the case. Do you think the problem is the DataGridView?

Wilfred

Copyright (c) Marimer LLC