2/16/2025 6:05:50 PM
|
|
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.
|
|
|
|
Sortable DataGrid![Your last visit to this thread was on 1/1/1970 12:00:00 AM](/images/forumimages/new.gif)
Posted: 28 Jul 06 11:24 AM
|
fiogf49gjkf0d I have a screen that, when opened first determines if the current user is a member of a specific team. If the user is not a member of the team, the form becomes read-only. I have a tabcontrol on this form, with each tab containing a datagrid. One of the tabs I am allowed to sort by clicking on the column heading or group by dragging the column heading up to the "group" area. I need to have this functionality on another tab however I cannot seem to get it to work for me. In comparing the properties between each of the datagrids, they are set up the same. I cannot find any coding that overwrites or adds/removes any type of functionality like this. I am not sure where else to look to determine why I can sort/group on one datagrid but not the other. Neither of these datagrids are set at runtime; they both have SQL statements associated to them. I have tried turning on and turning off the Sortable property but get the same result. Thoughts/suggestions as to where to look or what to try next? |
|
|
|
Re: Sortable DataGrid![Your last visit to this thread was on 1/1/1970 12:00:00 AM](/images/forumimages/new.gif)
Posted: 28 Jul 06 12:50 PM
|
fiogf49gjkf0d Not now but think about this for a future revamp: Instead of using tabs with duplicated controls that change slightly, make one panel, one datagrid. Each "tab change" would reinitialize the datagrid and set everything up for you at runtime. Each control you place and copy onto a form adds creation overhead. It's okay for a couple of controls but when you start copying hundreds of controls around your form is going to become useless because people will not wait for it to fully initialize.
The major downside to this is currently all of the grids will know their sort order and have the information pulled up. This goes out the window the second you drop it to one control.
If one grid isn't working I'll usually copy/paste one that does and change it. Yes it's extra work but it's almost guaranteed to function in the event that I forgot something. Having multiple grids that vary slightly is going to introduce differences. I have one customization I haven't consolidated that is a prime candidate compared to yours. I spend a good bit of time tweaking the copies until they have a similar structure that could have been saved had I just initialized one control at runtime and introduced the variations as necessary. The hours I spent tweaking the grids could have easily been spent consolidating them with time to spare. |
|
|
|
Re: Sortable DataGrid![Your last visit to this thread was on 1/1/1970 12:00:00 AM](/images/forumimages/new.gif)
Posted: 28 Jul 06 2:42 PM
|
fiogf49gjkf0d Thanks for the ideas! I like the whole future solution, unfortunately the screens I am working with are the Eventix screens so there would need to be a lot of re-writing (and hope we never upgrade!!). I did not try your suggestion but I did try something else and appears to have fixed the issue. I am using a FormWrapper class (per article from Ryan called Generically Setting a Form As Read-Only). After I called the class in this form, the last line when using this (in the example) was: frm.ReadOnly = True. When I changed this to frm.ReadOnly = False I received really weird results. However, when I left this line out completely, it fixed the problem. Yippeee!! Thanks for the suggestions though as I will definitely keep them in mind for future reference. |
|
|
|
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!
|
|
|
|
|
|
|
|