08-09-2016 04:33 AM
I can change properties of the cell (-1, -1) but I don't know how to edit text.
Is it too simple or impossible?
Regards,
Ljubo.
Solved! Go to Solution.
08-09-2016 05:05 AM
You can make the row headers visible by properties (right-click), and select show row headers.Once you make them visible you should be able to edit text in headers.
08-09-2016 05:13 AM
Row headers and column headers are already visible. Top left corner is not a row header.
Ljubo.
08-09-2016 06:43 AM - edited 08-09-2016 06:44 AM
The first question is why do you need that when you can select Rows and columns..!
Then I realize in Excel as well you can't change the 'Header Junction'. Its great that you programatically changed the color of the same.
Now if you are really interested to change the text of the cell (which is not a part of Column or a row header), you can disable rows and column headers and shift them to 1st row and 1st column of items as a column and row header then you can actually modify the left top corner cell (0,0)
Otherwise you can try finding the solution!
08-09-2016 07:30 AM
In Excel you can't change column headers (A, B, C ...) and row headers (1, 2, 3, ...).
I have a 2D array of Y data an 1D array of X data. X data is the same for all Y columns. The first idea was to use X values as Row Headers to give it special attention. There should be a header above the X data (name, quantity, unit ...). See example below.
The solution is very simple: I created a Label and put over the top-left corner of the listbox.
Have a nice day,
Ljubo.
05-25-2020 05:31 PM
I have a similar issue. My top left cell is too large and spoils aesthetics if left empty. I tried your great idea with the label. But what happens if you scale the table up/down (e.g. go into full screen)? Table resizes and label looses its correct position. Grouping the label with table does not seem helping.
05-26-2020 01:08 AM
@KazimirK wrote:
But what happens if you scale the table up/down (e.g. go into full screen)?
You could add an event structure with a pane resize event for the pane the control is in and then use that to get the position and size of the cell and update the size of the overlay.