DataGrid Column Labels

Terence Heaford theaford at btinternet.com
Wed Apr 18 02:36:50 EDT 2018


I’ve had a look at various behaviours but rather then make a mess of everything can you give a blow by blow of your actions please.


Thanks

Terry


> On 17 Apr 2018, at 15:47, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> As I mentioned, I get the behavior of a datagrid that IS working, then set the behavior of the datagrid that ISN'T working to that behavior. I'm not sure why but there seem to be more than one datagrid behavior object floating around. 
> 
> Bob S
> 
> 
>> On Apr 16, 2018, at 08:29 , Terence Heaford via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> I see what you have done and when I create a new project with LC9 and create a Data Grid I do not have any problems.
>> 
>> The issue I have is when I create a Data Grid within a project that has been created with an earlier version of LC.
>> 
>> If this is relevant I do not know.
>> 
>> For the moment I have settled on placing this in the preOpenCard handler
>> 
>> 
>> put  “aa,bb,cc,dd,ee,ff,gg,hh" into tFields
>> 
>> replace "," with CR in tFields
>> 
>> set the dgProp[ "column labels" ] of group  “myTable" to tFields
>> 
>> 
>> 
>> This does the trick but it would be better if I knew why?
>> 
>> There are 13 Data Grids in the project.
>> 
>> 8 that were there before LC9 are OK the other 5 exhibit the issue. 
>> 
>> 
>> 
>> All the best
>> 
>> Terry
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>



More information about the Use-livecode mailing list