Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 29, 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: Datagrid checkbox column - Erratic behavior
Ted Urquhart
Posts: 7
 
Datagrid checkbox column - Erratic behaviorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Oct 08 9:23 AM
I've developed datagrids with boolean fields set as checkbox columns. Theoretically, this should allow users to mark datagrid records without having to open a corresponding data form. Problem is, as records (datagrid row columns) are checked, other records also change to checked and/or unchecked.

Appears to simply be a bug. Would be a great feature (if it worked). Anybody have any experience or ideas on this one?
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Datagrid checkbox column - Erratic behaviorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Oct 08 4:46 PM
Is the checkbox.Text on the grid bound to the underlying db field?

Phil
[Reply][Quote]
Ted Urquhart
Posts: 7
 
Re: Datagrid checkbox column - Erratic behaviorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Oct 08 10:14 PM
Phil, the grid column is bound to a database field. I'm aware of the .text property of the (form) checkbox control, but not for a datagrid. Is there such a thing?

Basically, I created the datagrid, set the field layouts using the SQL property, then used the Columns property to change the column type to Checkbox.

Thanks,

Ted
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Datagrid checkbox column - Erratic behaviorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Oct 08 10:22 PM
[edit] - my first attempt at responding was rubbish - having another go now
[Reply][Quote]
Ted Urquhart
Posts: 7
 
Re: Datagrid checkbox column - Erratic behaviorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Oct 08 10:38 PM
Right, the datagrid is on a Manage form.

Whereas the intent is that this be the only editable field on the datagrid (kind of a bypass flag checkbox), yes, if I set other fields as ReadOnly = False I can successfully edit them.

Sometimes checking a datagrid checkbox column seems to work properly, then I'll check another, and one or more other grid rows update to checked. If the datagrid has multiple checkbox columns, often a secondary field checkbox(es) change to checked (so a different field). Pretty weird...
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Datagrid checkbox column - Erratic behaviorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Oct 08 10:52 PM
- you answered my rubbish post - but very sensibly!

That sounds very odd indeed - I would be tempted to try to debug in VS to see whether that gives you any clues. Checkboxes should not tick themselves.

If you can post something here which allows others to reproduce the issue, it would be useful - but I know that would take a fair chunk of time. Without that, it is difficult for me to take this further - maybe someone else will chime in.

Phil
[Reply][Quote]
Paul Roussell
Posts: 21
 
Re: Datagrid checkbox column - Erratic behaviorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Oct 08 8:26 PM
Hi Ted
Yes. There are known (but not documented) bugs in the Slx grid control. Version 7.2 SP2 made it a bit better, but still not perfect. The alternative is to buy a 3rd-party grid control and use that inside Slx.
Cheers
Paul Roussell
Adexio
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Datagrid checkbox column - Erratic behaviorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Oct 08 3:15 PM
I've got a few datagrids with 3+ check boxes. NO ISSUES (7.22+, although I was doing this in 6.2.6)

1. Make sure all Row ID fields are in the grid.....maybe not visible but the relevant fields need be present.

2. Inner Join between all tables so SLX doesn't think you are updating multiple records.

3. Databound fields.

4. Take a look at the Editing etc. events. are you doing anything else?

Recall that SLX fires an UPDATE statement for each (and every) cell you edit inline. This is in addition to anything you are firing off.


[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/29/2024 11:34:30 PM