Jump to content


Photo

problem after upgrading to the new release


  • Please log in to reply
44 replies to this topic

#1 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 07:19 PM

hi
until 2 hours ago i was working with 2 releases old
now i upgraded to the new one
and this i what i have in the grid

where records exists i have white background
and where there are no more backgrounds i have the regular grid background

i didnt change any property so
i guess there was a change "behind the scenes" in the last 2 releases that causes this
i dont even know where to begin searching

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 July 2007 - 07:29 PM

Hello Emailaya,

Allmost nothing have changed there. Do you maybe have use some OnCellColoring event?

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.

#3 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 07:42 PM

im
but i removed both cellcoloring and cellformatting code and the same happens
b4 upgrading it worked perfect

#4 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 07:44 PM

i have another grid in that same app
that behaves pretty much the same as this one
even has the same events
and there, everything works fine
i hate it when that happens

do u have an idea what to look for?

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 July 2007 - 07:56 PM

Hello Emailaya,

Some property have definitelly been set. Try this:

Copy this grid (only design-part) and place it on empty form. Start project to see if all is fine.

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.

#6 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 07:58 PM

how would it be good?
the problem is when there are records in the cds that is related to this grid
and the cds is filled with records at runtime

#7 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 08:01 PM

just for this conversation
u say that if i go back to the previous release of the components
i will still have this problem?
i think not


what is:
daAutoAssign? (currently set to TRUE)
daLinkField? (currently set to FALSE)

fieldname is written explicitly for each column in the grid

mayb this issue is somehow related to this topic:
http://www.bergsoft....?showtopic=1426
though i have 2 grids which basically acts the same and 1 is working and 1 doesnt
but i dont know where to start checking for the small differences that may cause this problem

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 July 2007 - 08:16 PM

Hello Emailaya,

I am sorry, but I still don't see this problem. Maybe for you it happen after . Maybe DrawingOptions is set to Custom for some column, or some other property. It will help if you send me something with I can further work.

daAutoAssign - work with DataAwareOptions.doAutoAssignFieldName = True:

When daAutoAssign is True, and you activate DataSet, Column will grab first available Field and display it. Next column with daAutoAssign will grab next Field and so on. This is good when FieldNames are unknown in design-time.

daLinkField - Alignment, and Visible property of Column will be assigned from Field. Field also have this 2 properties.

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.

#9 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 July 2007 - 08:17 PM

QUOTE (emailaya @ Jul 28 2007, 07:01 PM) <{POST_SNAPBACK}>
mayb this issue is somehow related to this topic:
http://www.bergsoft....?showtopic=1426
though i have 2 grids which basically acts the same and 1 is working and 1 doesnt
but i dont know where to start checking for the small differences that may cause this problem


I am working on this issue. I hope that it will be solution for you too, but I am not 100% sure.

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.

#10 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 08:25 PM

so in case i know all field names in design time and i wrote it manually in FieldName property of each column
both properties can be set to false, right?

1 more thing that might give u an idea
until 2 releases ago, when a new record was added, it reflected in the grid, online
meaning, u actually saw the new record added and placed correctly (sorted according to the column i wanted)
now, nothing happens when new records added and when the adding process ends
i get the result as attached in my original post here

#11 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 08:32 PM

can u explain in short
the DataAwareOptions of the grid?
AddColumns
AddIncremental
and the others

thanks

#12 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 July 2007 - 08:32 PM

Hello Emailaya,

1) For your case, you may turn off both flags.

2) I will test this now again, but nothing is radically changed there 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.

#13 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 08:49 PM

they are already false
but what about the others?
just want to understand the meaning of the properties mayb it will give me a clue
also read the 2nd paragraph in my previous post (the 1 b4 asking about DataAwareOptions)
mayb that will bring up sth?

#14 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 July 2007 - 08:54 PM

Hello Emailaya,

You have post a second before me smile.gif

doAddColumns - Add column on DataSet activate, if there is no columns already added.
doAddIncrementColumn - Automatically add increment column when data set is activated. Very usefull.
doBufferRecords - Buffer records into internal buffer and download all records from server.
doRetreiveRecords - Used for some types of DataSets with 1 record loaded at data set activate.
doClearColumnsOnDeactivate - Clear all columns with DataAwareOptions.daAutoDelete = True.

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.

#15 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 09:12 PM

doesnt seem to help

so i will go back few posts and ask:
u say that if i go back to the previous 2 releases
i will still have this problem?
coz all i did was upgrading, nothing more

#16 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 July 2007 - 09:18 PM

Hello Emailaya,

I haven't say anything. I have only say that maybe some property is activated by accident (like DrawingOptions), because in both version drawing worked exact for this issue.

Again, demo will help and save time for me and you smile.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.

#17 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 09:21 PM

its not that easy to build a demo bcoz i dont know what exactly is to be set in order to cause this issue
im most certain that a demo wont have this problem

moreover, i have another grid in the same app which is working

and all drawingoptions are set to doNormal

#18 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 09:25 PM

mayb
just mayb
this is related to the new default for selectedrow/column?
where was it set?
just to test i want to set it back to what it was

#19 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 July 2007 - 09:31 PM

Hello,

Sending me DFM file of DBGrid may also help.

You may set SelectedRow := 0 inside TNxCustomGridControl.Create; (NxCustomGridControl.pas file).

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.

#20 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 July 2007 - 09:34 PM

1 more interesting issue
after loading the 2 cds (1 for each grid i was talking about)

while for the grid that is working:
frm.nextdbgrid1.cells[5,2] - gives result for several records as there are in the cds that attached to this grid
for the grid that isnt working:
only frm.nextdbgrid1.cells[x,0] (x 0 to number of columns) actually gives values, if i do [x,1] and so on... the values are empty
though there are at least 9 records in the cds

sth is wrong in the link between the grid and the cds
as if the grid doesnt load all the cds information into itself

edit: in cellcoloring event .cells[x,y] does give the correct values for more cells, not like i described above




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users