|
<< Click to Display Table of Contents >> Navigation: Forum > grid color row select |
07-29-2020, 10:45 AM:
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
07-29-2020, 02:03 PM:
Set ActiveRowColor in the grid's properties. Use event AsyncGotoRow to first ClearRowSelect and then set ActiveRow to Row.
07-29-2020, 05:16 PM:
Hi,
Thank you , but you speak to dbgrid, not for grid,
Any ideas
best regards
07-29-2020, 11:36 PM:
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.
07-30-2020, 07:05 AM:
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.
regards
Robert