I was referring to dgNumberOfRecords • get the dgNumberOfRecords • set the dgNumberOfRecords of group "DataGrid" to 20 • Getting the dgNumberOfRecords is the same as getting the dgNumberOfLines. Setting the dgNumberOfRecords has a special significance however. If you set the dgNumberOfRecords then you are telling the data grid that you know how many total records there are and you are going to supply the data for each record on an as-needed basis. This is useful when you have data in a database cursor that you would like to feed into the data grid. After setting this property the data grid will send the GetDataForLine message to the data grid whenever it needs to display data for a particular line. You can define this command in the data grid script or elsewhere in the hierarchy. The definition is as follows:
command GetDataForLine pLine, @pDataA end GetDataForLine You should fill pDataA with the appropriate data based on the line of data being requested. pDataA should not have a numeric index. It is the array that would be assigned to one of the numeric indexes if you were assigning the dgData property. Bob S > On Aug 10, 2022, at 06:51 , Craig Newman via use-livecode > <use-livecode@lists.runrev.com> wrote: > > This seems like a fragment of a longer thread, but the “dgText” and the > “dgData” are the two methods I use to extract, process and reload the content > of a data grid. > > Craig > >> On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> >> I believe there is a property you set, after which you programmatically >> control the population of the datagrid. I am in a hurry so I can't look it >> up right now, but it is in the datagrid API in livecode lessons. >> >> Bob S >> >> >>> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode >>> <use-livecode@lists.runrev.com> wrote: >>> >>> I can only image that the customer entered a name with some characters that >>> Datagrid has a problem with as a column name OR that the shear number of >>> columns (as the customer is working with a very large dataset) exceeds some >>> practical Datagrid limit, but what would that be? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode