Atozed Forums
grid color row select - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: grid color row select (/thread-1833.html)



grid color row select - softdev85 - 07-29-2020

Hello,
anybody know,
i search since long time
how to change row color when you click on cell

in fact how i can change color of row when i select row

thank's a lot
best regards


RE: grid color row select - davidbaxter - 07-29-2020

Set ActiveRowColor in the grid's properties. Use event AsyncGotoRow to first ClearRowSelect and then set ActiveRow to Row.


RE: grid color row select - softdev85 - 07-29-2020

Hi,
Thank you , but you speak to dbgrid, not for grid,
Any ideas
best regards


RE: grid color row select - davidbaxter - 07-29-2020

Looking back at the app I used this in, it's a TTIWAdvWebGrid component. That would make it from the TMS package. Sorry about any misdirection.


RE: grid color row select - brsoft - 07-30-2020

Hi

I could only set the rows with javascript.

Example code:
---
var table = document.getElementById("gridname");
var rows = table.getElementsByTagName("tr");
for (i = 0; i < rows.length; i++) {
rows[i].className="cssname";
}
-----
Need to know:
- iwgrid in html code consists of divs and table components
- in the html code the name of the internal table component: "TBL" + gridname
- in the IW, switch off the corresponding parameters for StyleRenderOptions and CellRenderOption.

If there is a better solution, I am interested. Smile

regards
Robert