Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Images in buttons in DataGridView
Message
De
28/04/2007 10:07:15
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01215814
Message ID:
01220776
Vues:
25
You're welcome Richard ... I hope that document helped some. =0)

~~Bonnie



>Thanks Bonnie.
>
>I ended up using the DataGridViewImageCell.
>
>Richard
>
>
>
>>Richard,
>>
>>Here is a document I found that has a lot of information about DataGridViews and how they work. Maybe you can find the answer you need here:
>>
>>http://www.windowsforms.net/Samples/Go%20To%20Market/DataGridView/DataGridView%20FAQ.doc
>>
>>~~Bonnie
>>
>>
>>
>>
>>>I'm not entirely sure how I need to do this:
>>>
>>>Under VFP I created a grid that had a column that displayed on of two button with a different image on each depending on whether or not a varchar(200) field contained data. (Data is pulled from SQL Server, in case this matters). Both buttons would then open a small form to edit this field. On the closing of that form, it would again set which button should be visible.
>>>
>>>My question is: What's the best way to mimic this behaviour in .NET? I've looked at the DataGridViewButtonCell and DataGridViewImageCell classes but I'm not sure which would be best.
>>>
>>>Thanks
>>>
>>>Richard
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform