Jump to content


Photo

NextDbGrid vs. Dataset.DisabledControls


  • Please log in to reply
5 replies to this topic

#1 DiGi

DiGi
  • Members
  • 25 posts
  • Location:in the middle of nowhere

Posted 16 July 2008 - 11:06 AM

NextSuite 4.7.8.1
NextGrid 4.4.5
ADOdb components


File NxDBGrid.pas, line 229, procedure TNxGridDataLink.DataEvent(Event: TDataEvent; Info: Integer)

Grid is notified about dataset state change (deDisabledStateChange) but this message is blocked. Grid is not updated and it is locked in "DisabledControls" state.

Older revisions of grid are working fine (there isn't "if Event = deDataSetChange then". With TNxGridDataLink.DataSetChanged)
www.qr.cz - news 4 u

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 16 July 2008 - 12:17 PM

Hello DiGi,

Try to change this line to:

CODE
  if (Event = deDataSetChange) or (Event = deDisabledStateChange) then


I hope that this helps.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 DiGi

DiGi
  • Members
  • 25 posts
  • Location:in the middle of nowhere

Posted 16 July 2008 - 01:07 PM

Unfortunately it isn't help. It fixes some exceptions that it throwns but Refresh still not working.

I made some more debugging and found (I hope) correct message. This works:

CODE
if Event in [deDataSetChange, deDisabledStateChange, deLayoutChange] then

www.qr.cz - news 4 u

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 16 July 2008 - 01:18 PM

Hello Digi,

I have add it. I am sorry for this problem, I was fixing some other things but this jumped. sad.gif

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 17 July 2008 - 02:19 PM

im about to download the latest version 2day or 2morrow
will i need to fix it or was it already fixed in download site?
thanks

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 17 July 2008 - 03:42 PM

Hello Emailaya,

You will need to fix it manually. It will be ready in next version.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users