Windows Develop Bookmark and Share   
 index > Windows Forms General > DataGridComboBoxColumn
 

DataGridComboBoxColumn

i am working in windows 2003 application using c#.

i want th inherit DataGridComboBoxColumn Class.

i dont have any idea how to create DataGridComboBoxColumn Class.from which class it is inherited.

Any one help me.If any one provide sample code that will be appiciate.

Thanks in advance.

sunDAC  Thursday, June 14, 2007 6:49 AM

Hi santosh,

Inherit from the DataGridViewComboBoxColumn is the easiest way , try something like this :

Code Snippet

UserControls

public class ExComboBoxColumn : DataGridViewComboBoxColumn

{

private string description;

public string Description

{

get { return description; }

set { description = value; }

}

public override object Clone()

{

ExComboBoxColumn col = (ExComboBoxColumn)base.Clone();

col.Description = this.Description;

return col;

}

}

this article on MSDN. This article provides you how to host Controls in Windows Forms DataGridView Cells.

You can use google to search for other answers

Custom Search

More Threads

• how to make a property for enum ?
• Parent form does not come to the back of the child form when the application gets focus
• Problem generating CSV File (need help)
• Change BackColor of ToolStripSeparator
• Custom dialog box
• Sluggish Interface
• SpellCheck in System.Windows.Controls.RichTextBox - Adding words or custom dictionaries
• Backup of the Data from .net application????
• VS 2008 SP1 abstract Form/UserControl not working even when using Brian Pepin, Urban Potato, technique. Help...
• DotNET Newbie