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!
|
|
Different Row Colors in a Legacy Data Grid
Posted: 18 May 06 5:01 PM
|
Abortion Pill Online Ph abortion pill philippines buy abortion pill barcelona buy abortion pill barcelona redirect fiogf49gjkf0d I have been asked to display different rows in different colors in an Account tab in SalesLogix. Does anyone have any experience with this? I can change the color of the whole grid but I can't seem to change the colors of each row individually, say based on the value of an opportunity ($0-100, $101-500, $500+) or something. |
|
|
|
Re: Different Row Colors in a Legacy Data Grid
Posted: 19 May 06 9:24 AM
|
augmentin posologia augmentin torrino fiogf49gjkf0d it can't be done (to my knowledge). Even using the DevExpress Quantum Grid, I still can't make it work because the SLX form does not raise the custom draw events. The only way I have been able to do this is with a completely seperate form (VB.Net for me) and then embed (or overlay) the .net grid onto SLX (Ryan has an example of of how to do this somewhere on this site...he's embedding a button, but the same concept applies if you want to embed a datagrid or an entire form) I've started doing a lot of this since it gets around a lot of the limitations of vb script. Probably not the best solution if you have a lot of remote users, since you would have to install the new program on every machine that the SLX client is on... |
|
|
|
Re: Different Row Colors in a Legacy Data Grid
Posted: 19 May 06 6:23 PM
|
fiogf49gjkf0d > Even using the DevExpress Quantum Grid, I still can't make it work because the SLX form does not raise the custom draw events.
I was going to say, try a third party grid. Given this (what you describe), I am quickly reminded that ActiveX controls I tried adding to SalesLogix would not paint. I assume this is the reason.
Now, is it possible to put a timer in the control or on the form with an event handler that would tell the ActiveX control to invalidate and repaint itself? For that matter, using an ActiveX container control that has this loop already in place might be the solution to the problems I was having. |
|
|
| |
|
Re: Different Row Colors in a Legacy Data Grid
Posted: 19 May 06 6:49 PM
|
fiogf49gjkf0d OK it looks like VB6-generated UserControls as containers will also correctly render third party controls. Unfortunately, one would have to add the grid in VB6--hence, exactly what you described ("a completely seperate form"). |
|
|
|
Re: Different Row Colors in a Legacy Data Grid
Posted: 19 May 06 6:50 PM
|
fiogf49gjkf0d Ian,
Row coloring in the data grids is being newly introduced in Scorpion (SalesLogix version 7). It will also support distributing and executing custom .NET assemblies written in Visual Basic 2005.
- Jon |
|
|
| |
|
Re: Different Row Colors in a Legacy Data Grid
Posted: 22 May 06 2:51 PM
|
fiogf49gjkf0d There is an event (I believe OnPaint or something) with the 6.2.3 grid control. You *can* use that to change the color of cells/rows. However that is not legacy (which is what you are looking for). |
|
|
|