Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, November 30, 2024 
 
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!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Setting the cursor in the first field in a grid
Steve Smith
Posts: 3
 
Setting the cursor in the first field in a gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Matt Dockins
Posts: 159
 
Re: Setting the cursor in the first field in a gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Steve Smith
Posts: 3
 
Re: Setting the cursor in the first field in a gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/30/2024 1:33:32 AM