I have noticed the following while trying to construct a DataGridView in the designer:1. If I add a Button Column and specify default text it doesn't display any text on the button.2. If I add an Image Column and specify an icon or *.png it only shows the place holder image (box with red cross).Is there a way to add custom cell templates such as a calendar picker?
kenhamilton2011-04-27 23:48:31
DataGridView Issues
- kenhamilton
- Posts: 15
- Last visit: Mon Aug 12, 2013 6:44 pm
DataGridView Issues
Update on issue 1., The text appears once I enter data into a cell and move the focus away from that cell.
- kenhamilton
- Posts: 15
- Last visit: Mon Aug 12, 2013 6:44 pm
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
DataGridView Issues
Please note that David is attending TechEd in Atlanta. I am sure he will look at it when he gets back.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
DataGridView Issues
The easiest way to get default text on a Button in a cell is to set the
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- kenhamilton
- Posts: 15
- Last visit: Mon Aug 12, 2013 6:44 pm
DataGridView Issues
I didn't set that in the example I sent you but when I do the text doesn't show until an edit is commenced somewhere in the row(and subsequently a new row is staged below the active one). I suspect this is the general behavior of the DGV when a row is not yet committed.So text works in fashion I'll need to get my head around but in the case of adding an image it never shows. Obviously I'm new to this and the subtleties of windows forms so forgive me if I'm missing something obvious or not fully understanding the correct way to implement this control.