Shared Data Grid header refresh problem

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DangerousThing
Posts: 8
Joined: Tue Feb 14, 2012 4:55 pm

Shared Data Grid header refresh problem

Post by DangerousThing » Wed Feb 15, 2012 1:31 am

Hi:

I'm fairly new to LiveCode programming. I just started a project that just calls out for a Data Grid, and I have a big problem.

I'm using the Data Grid as a shared background item, and it will be shared on *all* pages of the stack.

The data is shared, but it doesn't show up on the other cards (other than the first), unless I specifically refresh it. The following handler in the stack correctly refreshes the data.

on preOpenCard
dispatch "refreshList" to group "Ships"

pass preOpenCard
end preOpenCard

However, the column headers are not refreshed, and only one card has the headers with text in them (the other column headers are visible but without text). I cannot get the headers to stay visible, even if I go into the Data Grid properties and hit "Refresh Data Grid".

I wish I knew what the code on that button was, because it refreshes both the headers and the data.

I'm starting to tear out my hair over this, so if anybody can help me I'd appreciate it.

Post Reply