Atozed Forums
TIWDBGrid with fixed row headers - 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: TIWDBGrid with fixed row headers (/thread-1604.html)



TIWDBGrid with fixed row headers - Diekie - 03-26-2020

Hi There

I have XE2 and IntraWeb 12.2.37.

I have spent a fair amount of time looking for a way to freeze the header row on my TIWDBGrid when scrolling, to no avail.

There are various CSS-based solutions out there, but they all depend on the <thead> and/or <tbody> tags, which this version of IntraWeb does not produce for the table syntax. I do believe it was introduced in a later version.

Question: Is there a way to modify the output HTML stream, so I can manually insert these tags in the appropriate place? Are there any other solutions, perhaps?

I have also tried overlaying 2 grids, but it is not an elegant solution.

I thank you!


RE: TIWDBGrid with fixed row headers - DanBarclay - 03-26-2020

Is there an option to upgrade to the latest IW15? I use XE2 as well, works well with the latest IW.

As for using brute force on that, it's been a long time since I fooled with it but you can get a shot at the html with the Render events (ex ...RenderCell() and friends). I'm not sure how that works in IW12 but you may want to play around with it.

You may be able to get to it with the form.OnRender() event. Sorry, I don't have an example of that but you may want to take a look or search the forum and sample code.

Dan


RE: TIWDBGrid with fixed row headers - Diekie - 03-27-2020

(03-26-2020, 07:07 PM)DanBarclay Wrote: Is there an option to upgrade to the latest IW15?  I use XE2 as well, works well with the latest IW.

As for using brute force on that, it's been a long time since I fooled with it but you can get a shot at the html with the Render events (ex ...RenderCell() and friends).  I'm not sure how that works in IW12 but you may want to play around with it.

You may be able to get to it with the form.OnRender() event.  Sorry, I don't have an example of that but you may want to take a look or search the forum and sample code.

Dan

Hi Dan

Thanks for the pointers, I tried plugging into most of the events, but no success.

I think ultimately we'll have to get IW15.

Stay safe.