11/30/2024 12:34:35 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
Setting the cursor in the first field in a grid
Posted: 30 Mar 08 12:42 PM
|
Hi
I have a datagrid that is linked to a table, I have code that adds in a blank row to the table then refreshes the grid, because of the sort order the blank row always appears at the top.
What I am trying to do is have the cursor appear ready to edit in the top left cell or node of the grid - has anyone ever managed to do this?
Thanks
Steve |
|
|
|
Re: Setting the cursor in the first field in a grid
Posted: 02 Apr 08 10:04 AM
|
honestly SalesLogix datagrids are great and all, but they are limited in some ways. Typically what I do for the scenario you described above is set a series of fields above the grid, then put an add button next to them, once the user fills in the fields and clicks add, it adds the record to the table, refreshes the grid, and clears out the fields. Sometimes I autofill the fields based on the selected row in the grid and make the button an "add/edit" button instead. I find this useful when I want more control than the standard edit view of a grid will allow (for example with complex duplicate checking).
You might try this approach as it is very clean, albeit not as clean as using the grid directly would be, and gives you greater control with fewer headaches. |
|
|
|
Re: Setting the cursor in the first field in a grid
Posted: 02 Apr 08 12:25 PM
|
Hi Matt
Thanks for the response, I have, in the past, used the method that you have described. Unfortunately for this scenario there isnt really enough room as we have 3 stacked grids on a form.. (dont tell me )
What I have done for now is to add '** Select **' to the grid and sorted it, the *'s put it to the top of the list and at least it looks like something changed |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|