DataGrid Form, How to show header?

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
Miljan
Posts: 1
Joined: Wed Mar 23, 2016 1:05 pm

DataGrid Form, How to show header?

Post by Miljan » Wed Mar 23, 2016 1:22 pm

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!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: DataGrid Form, How to show header?

Post by dunbarx » Wed Mar 23, 2016 2:05 pm

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

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: DataGrid Form, How to show header?

Post by MaxV » Fri Mar 25, 2016 1:02 pm

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply