Alternate background for grid row
-
- Profound User
- Posts: 22
- Joined: Fri Aug 06, 2010 1:40 pm
- First Name: Rich
- Last Name: Dotson
- Company Name: Wheeling & Lake Erie Rail
- State / Province: Ohio
- Country: United States
- Contact:
Alternate background for grid row
Based on editing done on data in the grid, I need to set the color of a single grid row to a color different then the color defined in the odd row / even row properties. Is this possible to do at execution time?
- Alex
- Profound Logic Staff Member
- Posts: 233
- Joined: Fri Jan 04, 2008 12:10 pm
- First Name: Alex
- Last Name: Roytman
- Company Name: Profound Logic Software
- Contact:
Re: Alternate background for grid row
You can try using the Row Selection properties.
You can set the "row selection", "selection field", "selection value", and "selection background" properties. Then, in your RPG code, populate the selection field appropriately as you are writing subfile records.
You can set the "row selection", "selection field", "selection value", and "selection background" properties. Then, in your RPG code, populate the selection field appropriately as you are writing subfile records.
-
- Profound User
- Posts: 22
- Joined: Fri Aug 06, 2010 1:40 pm
- First Name: Rich
- Last Name: Dotson
- Company Name: Wheeling & Lake Erie Rail
- State / Province: Ohio
- Country: United States
- Contact:
Re: Alternate background for grid row
That works for the initial display but it also allows the user to 'unselect' the row or select additional rows. I am trying to identify the rows in the grid that have an error in the data. The user will then click on an 'Edit' button for the rows in error and make the necessary changes to correct the data. Is there a way to 'turn off' the selection feature but still change the color of the row?
- Alex
- Profound Logic Staff Member
- Posts: 233
- Joined: Fri Jan 04, 2008 12:10 pm
- First Name: Alex
- Last Name: Roytman
- Company Name: Profound Logic Software
- Contact:
Re: Alternate background for grid row
I guess in that case grid selection isn't going to work for you.
But you can try to bind the "background color" property of individual fields in the subfile to trigger the highlighting. You may want to set the width/height on the fields so that it appears as if the entire row is highlighted.
But you can try to bind the "background color" property of individual fields in the subfile to trigger the highlighting. You may want to set the width/height on the fields so that it appears as if the entire row is highlighted.
Who is online
Users browsing this forum: Bing [Bot] and 0 guests