Hello every one,
I am starting to learn about DataGrid and i am kinda stuck on this.
As i am a complete newbie, i have one newbie question:
Is it possible to set a property of a datagrid Form, so it will show a header?
OR
How to enable user to edit a Text field on data grid Table?
How should i go about doing just that?
-----EDIT-----
I have managed to make a form editable, but it is editable only when some text is populated inside of a text field.
Can i make data grid field in a row, editable even when no text is present?
Thank you in advance for any help!
DataGrid Form, How to show header?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: DataGrid Form, How to show header?
Hi.
It does not matter if a "field" in a DG is empty or not. Try it. Make a new DG, populate it with data, leaving one cell blank, Double-click in that cell.
When you do that, the DG object creates a phantom field that sits on top of the field in question. That is where the user can enter or change the contents. When you leave the phantom, its contents are loaded into the underlying field. The fields themselves are named "Col 1 0001", "Col 1 0002", etc.
The "header" fields are named "HeaderLabel" in a new DG, distinguishable only by their ID's.
Craig Newman
It does not matter if a "field" in a DG is empty or not. Try it. Make a new DG, populate it with data, leaving one cell blank, Double-click in that cell.
When you do that, the DG object creates a phantom field that sits on top of the field in question. That is where the user can enter or change the contents. When you leave the phantom, its contents are loaded into the underlying field. The fields themselves are named "Col 1 0001", "Col 1 0002", etc.
The "header" fields are named "HeaderLabel" in a new DG, distinguishable only by their ID's.
Craig Newman
Re: DataGrid Form, How to show header?
I suggest you to read here: http://livecode.wikia.com/wiki/Datagrid_API
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w