StrataFrame Forum

Problem viewing controls to use or SEEK SeekToPrimaryKey

http://forum.strataframe.net/Topic27822.aspx

By Eduardo - 8/4/2010

Hello
I've got a problem here that I do not know if I can explain it.

The scenario is as follows, I am using a DevExpress grid on it and I need to do some validations when the visual grid is filled, so I used a method of the Grid that will "painting" as it is completed and to get information in my database data, used the Seek method of BO, and that validation works, but I have two strange problems (as I said, I do not know if I can explain it)

1 - When a call messageForm grid filled with the buttons it does not appear if you do something as basic as MessageForm.ShowMessage (Strataframe ") with the empty grid, the OK button appears, if the grid is full, the button disappears.

2 - When you call a MessageBox. NET, the application is without focus and the message only appears if I press the ALT button. It's the same case, if the grid is empty, no need to press ALT, if full, the message only appears if I press ALT.

I did an analysis on my validation routine and remove methods SEEK behavior MessageForm and MessageBox are normal.
I would use a Filldatatable, but is very slow.

TIA

Eduardo Oliveira

By Ivan George Borges - 8/4/2010

Hi Eduardo.

I find it a bit difficult to go through your issue this way, but here are some things we could try to start with.

Have you tried to do the same thing with a plain DataGridView, instead of the DevExpress? Also, if you can do it this way and face the same issues, could you post a small sample so we could have a look?

By Edhy Rijo - 8/4/2010

Hi Eduardo,

That is very strange. The BO.Seek() should not affect the UI unless there is some sort of threading being used.



Could you post the code you use where you are using the BO.Seek() to see if something comes up?
By Eduardo - 8/4/2010

I apologize for the unnecessary post, but the problem was a method of DevExpress (ClearColumnError).

I really was scared to imagine it would be a problem in relation to Strataframe, but fortunately I have nothing to complain of this fantastic tool.

Thank you for listening and once again apologize for the unnecessary post
By Edhy Rijo - 8/4/2010

Hi Eduardo,



Glad you find the source of the problem and no need to apologize at all. Smile
By Ivan George Borges - 8/4/2010

Hey Eduardo!

No need to appologize. We've all been through things like that. Thanks for the kind words. Wink

By Peter Jones - 8/4/2010

Hi Guys,



I know this specific problem has been reconcilled however there is bug in seek to primary key when the pk is a guid. Refer post:



http://forum.strataframe.net/Topic26948-10-1.aspx



Cheers, Peter
By Ivan George Borges - 8/5/2010

Thanks Peter.