Re: Host Control in DataGridView
- From: Frederik <frederik12@xxxxxxxxx>
- Date: Thu, 31 Jan 2008 07:43:26 -0800 (PST)
Thanks for your reply Nicholas.
I had a quick try to customize the example you provided and use it for
my own program, but stumbled on the fact that this custom cell uses a
method 'InitializeEditingControl'. In my case I need to show (without
editing) the LinkLabel. I have a feeling I need to overwrite other
methods in my case. I'll keep trying somewhat, but do not hesitate to
throw some more examples ;-)
Kind regards,
Frederik
On Jan 31, 2:52 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Frederik,.
What you are doing should be possible with a custom control for a
DataGridView. Here is a link to a sample which hosts a MaskedTextBox:
http://msdn2.microsoft.com/en-us/library/ms180996.aspx
You should be able to adapt this to your needs.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Frederik" <frederi...@xxxxxxxxx> wrote in message
news:949f9347-abc1-4ed8-bb0b-0375dde85603@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,
Can someone tell me how I can host a LinkLabel in a DataGridView (the
existing DataGridViewLinkColumn does not provide what I need). Do I
need to derive from DataGridViewTextBoxCell or from DataGridViewCell?
Many thanks for any feedback/examples.
Frederik
- References:
- Host Control in DataGridView
- From: Frederik
- Host Control in DataGridView
- Prev by Date: Re: Function minimization and random numbers
- Next by Date: Re: Only one usage of each socket address (protocol/network address/po
- Previous by thread: Re: Host Control in DataGridView
- Next by thread: Re: Linq to Entity, query sql
- Index(es):
Relevant Pages
|