Datagrid question... sizing a column cell

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
NigelS
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 83
Joined: Sat Oct 22, 2011 2:37 pm

Datagrid question... sizing a column cell

Post by NigelS » Wed May 15, 2013 6:30 pm

Greetings

When doing an edit in place in a datagrid column, can one change the length of the cell that is being edited or values been entered without effecting the whole column of the data grid?

The data grid is set as a 'Table'

I just need a yes or no answer. And based on the answer i well make a decision on purchasing the datagrid helper. I just don't want to spend that kind of money only to find it can't be done.

Nigel

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Datagrid question... sizing a column cell

Post by Klaus » Wed May 15, 2013 9:53 pm

Hi Nigel,

do you want to resize the "Editor field" of the datagrid?


Best

Klaus

NigelS
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 83
Joined: Sat Oct 22, 2011 2:37 pm

Re: Datagrid question... sizing a column cell

Post by NigelS » Thu May 16, 2013 4:09 am

Yip, let me see if I can explain myself a little better. I want to be able place the mouse on a single column cell and click on it to either enter date or change the value in that column cell. But each cell in that column mat contain one of three datatypes i.e. Text, a numeric value or a tick box. If its a text then, I want to able to pre-configure what the text length will be. If the cell is be a numeric value then only numeric values can be entered.

I understand I can use the "Form' format and fiddle with that but would prefer to use the "Table" format. I've attached a screen shoot to try and make it a little clearer

I hope that makes my question more understandable.

Thx
Attachments
Screen Shot 2013-05-16 at 5.07.11 AM.png

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Datagrid question... sizing a column cell

Post by Klaus » Thu May 16, 2013 11:16 am

Hi Nigel,

sound as if this is doable, but definitively NOT a trivial task :-)
You will need to write a script for the "Editor Field" of the datagrid.

Go here: http://lessons.runrev.com/m/datagrid, load the "Manual PDF"
and read the part about "Using The Built-In Field Editor".
That will get you started.


Best

Klaus

Post Reply