Windows Develop Bookmark and Share   
 index > Windows Forms Designer > how to have TextBox and Button in a DataGridViewCell
 

how to have TextBox and Button in a DataGridViewCell

Hi,

I need to have a DataGridView column, which should contain a TextBox and a Button only under some condition. Is there any component similar to EditorButton of infragistics or we should create a CustomEditor..

please throw some light for me.

Sakthi,,  Thursday, July 26, 2007 5:09 PM

Hi Sakthi,

These is no easy way to achieve this. You need to paint it yourself.Check the sample below:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1425662&SiteID=1

Hope this helps.

Regards

Rong-Chun Zhang  Friday, July 27, 2007 9:35 AM

Hi Sakthi,

These is no easy way to achieve this. You need to paint it yourself.Check the sample below:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1425662&SiteID=1

Hope this helps.

Regards

Rong-Chun Zhang  Friday, July 27, 2007 9:35 AM

Hi Rong-Chun Zhang,

thanks for the help.

With the help of the supporting url i created my own custom editor.. Thanks again.

Cheers..

Sakthi,,  Monday, July 30, 2007 8:17 AM

You can use google to search for other answers

Custom Search

More Threads

• dropdrown menu in toolbar
• Custom Designer on form doesn't work
• Problem in ultraTabControl
• Changing the TypeEditor of a property
• 13 Errors in # Region "Windows Form Designer generated code" & Components of VB.NET 2005 Express: How to correct them?
• drag-and-drop,resize,and moving controls in runtime
• Color attributes with checkbox.appearance=appearance.button
• Key event management in custom windows form designer
• design time and compile time code
• "base class <...> could not be loaded" when compiling with /clr