Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Host control in custom datagridview textbox

Posted on 2009-05-13
1
Medium Priority
?
302 Views
Last Modified: 2013-11-07
I am using Visual basic .NET 2005

I am trying to host a button in my datagridview cell that is always there except in edit this is to launch another form for a long heavy lookup that will not fit in a combobox.

I've read the DataGridView FAQ:
http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/a44622c0-74e1-463b-97b9-27b87513747e#faq16

I'm trying to figure out which event to put the DataGridView.Controls.Add()

I have a custom class CustomDGVTextBoxColumn that has it's celltemplate set to CustomFGVTextBoxCell

I've tried putting it in the Public Sub New() but it gives me an Object Referenced is not set to an object error(probably the datagridview that hasn't been initialized)
0
Comment
Question by:james2432
1 Comment
 
LVL 1

Accepted Solution

by:
james2432 earned 0 total points
ID: 24378094
Decided to paint the Button and handle the x,y coordinates in the cell mousedown event
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question