Page 1 of 1

DataGrid Form, How to show header?

Posted: Wed Mar 23, 2016 1:22 pm
by Miljan
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!

Re: DataGrid Form, How to show header?

Posted: Wed Mar 23, 2016 2:05 pm
by dunbarx
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

Re: DataGrid Form, How to show header?

Posted: Fri Mar 25, 2016 1:02 pm
by MaxV