YO - I never said it wasn't good for Data Entry - although - since you replied to MY Message - seems that was your AssUmption! :-)

-K-


On 4/19/2013 6:44 PM, Rafael Copquin wrote:
I totally disagree with those of you who say that grids are not good for data entry. I use them all the time, both for just displaying data or as dataentry objects or even as picklists.

Just take a look at these articles that I wrote years ago on the use of grids to make invoices and the use of cursor adapters to save data. Also there are a couple that show how to use them as picklists.

As far as I am concerned, they are fantastic objects.

All you have to do is consider them as containers to textboxes (or other objects, such as command buttons, checkboxes, etc). Actually they are containers!, and simply program (in most cases) the contained objects.

http://www.universalthread.com/ViewPageArticle.aspx?ID=729

http://www.universalthread.com/ViewPageArticle.aspx?ID=712

http://www.universalthread.com/ViewPageArticle.aspx?ID=667

http://www.universalthread.com/ViewPageArticle.aspx?ID=817

You can even use them to select data, as for instance, you show a list of customers in a grid, select one by either pressing enter (just program the keypress event in the textbox) or double click (program the double click event), the grid closes and you can bring the whole record into a calling form to show it. Or simply navigate the grid (put code in the afterrowcolchange event of the grid) and show data in the form or in another grid by just using a sql statement.

The possibilities are endless.

Don't shy away from grids. They are good.

Rafael Copquin


El 19/04/2013 06:44 p.m., AndyHC escribió:
+1 ... but use a CursorAdapter.

On 20/04/2013 02:29, Kurt @ VR-FX wrote:
Gene - I totally agree w/RK! Creating a Grid on a Form via Visual Design is really the best way to go - at least in my opinion. And, you can do it in an interesting an intuitive way.

Create a Form. Right click in the Form and open the Data Environment. Add a DBF to the D. Env. - and, now - with DBF & its fields displayed in the D.E. - select a number of the field by clicking - and I think holding down shift. Then - simply Drag all those selected fields onto the Form - and you instantly have a Grid that's been populated with the fields that you need!

-K-


<snip>

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to