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: Datagrid Multi-Select
Ian Fitzpatrick
Posts: 146
 
Datagrid Multi-SelectYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Oct 07 11:10 AM
I am trying to use a datagrid to display data and if the user selects two rows and presses a button I want to "merge" those two records into one. The problem that I'm having is determining which two rows are selected. Has anyone been able to accomplish this?

Thanks,
Ian
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Datagrid Multi-SelectYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Oct 07 4:06 AM

===========================================
Finding selected rows on multi-select grid:
===========================================
' Make sure PrimaryTableID is in the grid (and hide it)

Dim intIndex
For intIndex = 0 To form.grdEvents.Selection.Count - 1
msgbox form.grdEvents.Selection.Item(intIndex)
Next
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Datagrid Multi-SelectYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Oct 07 12:45 PM
....what Mike said

Also, that code will only work if you add the primary ID value for the table to the grid and hide it. If you don't do that the Selection will return blank for each row.
[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 10:34:06 AM