Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generics class Pin
abedo198227-May-07 10:49
abedo198227-May-07 10:49 
GeneralRe: Generics class [modified] Pin
Not Active27-May-07 11:45
mentorNot Active27-May-07 11:45 
Questionsynchronization with serialport ? Pin
Mir_As26-May-07 9:22
Mir_As26-May-07 9:22 
AnswerRe: synchronization with serialport ? Pin
Muammar©26-May-07 19:39
Muammar©26-May-07 19:39 
Questionread data from excel Pin
Mujz.........26-May-07 8:59
Mujz.........26-May-07 8:59 
QuestionHow to use code templates for entity properties Pin
AndrusM26-May-07 8:54
AndrusM26-May-07 8:54 
QuestionShow combobox list opening control only in current row Pin
AndrusM26-May-07 8:53
AndrusM26-May-07 8:53 
QuestionDropDownWidth ignored in DataGridViewComboBoxColumn Pin
AndrusM26-May-07 8:51
AndrusM26-May-07 8:51 
To reproduce

1. Run the code.
2. Open dropdown list

Observed:

Dropdown list width is same as column width

Expected:

Dropdown list width must be greater than column width

How to make dropdown list width greater than column width in DataGridView ?

Andrus.


using System;
using System.Windows.Forms;

class Form1 : Form {

[STAThread]
static void Main() {
try {
Application.Run(new Form1());
}
catch (Exception e) {
MessageBox.Show(e.ToString());
}
}

private DataGridView dataGridView1 = new DataGridView();

public Form1() {
Controls.Add(this.dataGridView1);
Load += new EventHandler(Form1_Load);
}

private void Form1_Load(object sender, EventArgs e) {
DataGridViewComboBoxColumn
col = new DataGridViewComboBoxColumn();
col.DropDownWidth *= 3;
dataGridView1.Columns.Add(col);
}
}


Andrus

Questionhow to tell to regex (regular expression) that ignore some charachters ? Pin
hdv21226-May-07 8:40
hdv21226-May-07 8:40 
AnswerRe: how to tell to regex (regular expression) that ignore some charachters ? Pin
mav.northwind26-May-07 21:59
mav.northwind26-May-07 21:59 
QuestionSetStyle( ) to eliminate flicker causes problem. Pin
Ylno26-May-07 7:56
Ylno26-May-07 7:56 
Questionclearing table or dataGrid and make the table selected fit in my dataGrid Pin
spawn_ro198526-May-07 6:16
spawn_ro198526-May-07 6:16 
QuestionDirectoryInfo Problem Pin
Mohammed Elkholy26-May-07 5:20
Mohammed Elkholy26-May-07 5:20 
AnswerRe: DirectoryInfo Problem Pin
kubben26-May-07 7:14
kubben26-May-07 7:14 
AnswerRe: DirectoryInfo Problem Pin
Luc Pattyn26-May-07 8:28
sitebuilderLuc Pattyn26-May-07 8:28 
Questionexport from grid to excel,word Pin
praveenanand26-May-07 3:18
praveenanand26-May-07 3:18 
AnswerRe: export from grid to excel,word Pin
Manoj Kumar Rai26-May-07 7:02
professionalManoj Kumar Rai26-May-07 7:02 
QuestionOpen File Dialog again Pin
mihksoft26-May-07 3:02
mihksoft26-May-07 3:02 
QuestionHashtable Pin
pranu_1326-May-07 2:55
pranu_1326-May-07 2:55 
AnswerRe: Hashtable Pin
Dave Herren26-May-07 5:00
Dave Herren26-May-07 5:00 
AnswerRe: Hashtable Pin
Kevin McFarlane26-May-07 5:25
Kevin McFarlane26-May-07 5:25 
AnswerRe: Hashtable Pin
Kevin McFarlane26-May-07 5:30
Kevin McFarlane26-May-07 5:30 
QuestionPicture box and drawing Pin
Anka_Ame26-May-07 0:44
Anka_Ame26-May-07 0:44 
QuestionGet "current playing" movie/song in WMP Pin
mulybenj26-May-07 0:22
mulybenj26-May-07 0:22 
AnswerRe: Get "current playing" movie/song in WMP Pin
henur26-May-07 21:38
henur26-May-07 21:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.