Hello all,
Hope the title is self explanatory ?
I'm looking for something like in excel where cells with comment on appear with a red square in the upper right corner.
Capture.JPG 13.86KB 0 downloads
Regards.
Posted 26 December 2022 - 01:57 PM
Hello all,
Hope the title is self explanatory ?
I'm looking for something like in excel where cells with comment on appear with a red square in the upper right corner.
Capture.JPG 13.86KB 0 downloads
Regards.
Posted 26 December 2022 - 09:17 PM
Hi,
You can set MyGrid.Cell[x, y].Hint property for this purpose.
Posted 28 December 2022 - 08:19 PM
Hi Boki,
Thanks for reply.
I'm talking about the header cell !
User cases for header are sorting, sizing or moving column; so the mouse cursor move over the header, and this event show the hint.
But, when user just looks at datas in the grid (95% of the time or more?), the mouse moved from buttons (like ok/cancel) to scroll bars, there is nothing to notify him about a hint for a particular column header cell.
I suggest a red square appears when the header hint exists (only for the header cell, not all the column)
User xp: ho ho ho what's about this little red square in the column header... let's have a look... whaou ! the soft notifies the sum of the data in the column through the hint
Posted 31 December 2022 - 03:11 PM
Hello,
There is a property Hint in Header sub-property of Column. Maybe this can help you.
Other solution is to use standard OnMouseMove event and implement hints manually. If you want to show hints in "normal" cells, you can hide marks by excluding aoHintMarks from AppearanceOptions property.
Hope that this helps a little bit.
Posted 03 January 2023 - 01:09 AM
Thx for reply.
Unfortunatly, header hint is yet set. But the hint appears only when cursor is flying over. In most time, the cursor is all round the header; that why I asked for the red square as it can be a visual signal to notify a user about information...
I'm working on a SQL query buider.
My grid contains a column 'column name'; with a cell for each column of the previously selected tables. each cell is colored depending on technical attributes (ie mandatory:PK or not null w/o default, etc). for each cell the hint contains the SQL definition (ie integer, date) and the parent table.
And the header hint explains the colors.
This light conception prevents the need of numerous permanent columns : parent table name (Text), SQL definition (text), PK & NotNull & default (check) as the grid is yet full of query related columns like new value and others to build the "where" part with a "join" possibility
I guess this red square in the header is a user friendly reminder...
Regards.
0 members, 0 guests, 0 anonymous users