Click here to Skip to main content
15,915,081 members
Home / Discussions / C#
   

C#

 
QuestionFire a generic event on enter of item on a tab control page Pin
oracleConvert2-May-06 5:00
oracleConvert2-May-06 5:00 
AnswerRe: Fire a generic event on enter of item on a tab control page Pin
Josh Smith2-May-06 5:04
Josh Smith2-May-06 5:04 
GeneralRe: Fire a generic event on enter of item on a tab control page Pin
oracleConvert2-May-06 5:11
oracleConvert2-May-06 5:11 
GeneralRe: Fire a generic event on enter of item on a tab control page Pin
Josh Smith2-May-06 5:48
Josh Smith2-May-06 5:48 
GeneralRe: Fire a generic event on enter of item on a tab control page Pin
oracleConvert2-May-06 6:07
oracleConvert2-May-06 6:07 
QuestionCrystal Report Matter Pin
ventomito2-May-06 4:31
ventomito2-May-06 4:31 
Questionwebdav exchange server Pin
mhusleag2-May-06 4:25
mhusleag2-May-06 4:25 
QuestionToolStripTextBox disappearing in context menu Pin
Wjousts2-May-06 4:11
Wjousts2-May-06 4:11 
I have a context menu that contains a ToolStripTextBox control that I am using with a DataGridView. What I want to do is have the context menu appear when I right click on certain column headers and allow the user to change the text in the column header. The problem is that the columns I want to change are dynamically added to the DataGridView at runtime and for some bizare reason the ToolStripTextBox doesn't appear in that case. If I set the context menu at design time to the DataGridView I can see the ToolStripTextBox is there, but when I try it with the dynamically created columns it isn't. I even added a regular menu item to the context menu and that will appear on the dynamically added columns but the ToolStripTextBox is left out. Does anybody have any idea what is going on here? Is it a bug?
Here's the code where I add the columns:
DataGridViewTextBoxColumn dgvtbc = new DataGridViewTextBoxColumn();
dgvtbc.HeaderText = name;
dgvtbc.DataPropertyName = name;
dgvtbc.Name = name;
dgvtbc.HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
dgvtbc.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
dgvtbc.DefaultCellStyle.Format = "f3";
dgvtbc.SortMode = DataGridViewColumnSortMode.NotSortable;
Padding newPadding = new Padding(0, 5, 0, 5);
dgvtbc.HeaderCell.Style.Padding = newPadding;
dgvtbc.HeaderCell.ContextMenuStrip = cmsIngHeaders;
dgvSamples.Columns.Add(dgvtbc);
table.Columns.Add(name, typeof(double)).DefaultValue = 0;



Thanks.
QuestionError while Calling WebService Pin
Jax_qqq2-May-06 3:45
Jax_qqq2-May-06 3:45 
AnswerRe: Error while Calling WebService Pin
Paddy Boyd2-May-06 4:47
Paddy Boyd2-May-06 4:47 
GeneralRe: Error while Calling WebService Pin
Jax_qqq2-May-06 18:05
Jax_qqq2-May-06 18:05 
Questionwindows based application querry ! Pin
meer_Lx2-May-06 3:37
meer_Lx2-May-06 3:37 
AnswerRe: windows based application querry ! Pin
Paddy Boyd2-May-06 4:45
Paddy Boyd2-May-06 4:45 
GeneralRe: windows based application querry ! Pin
meer_Lx2-May-06 19:13
meer_Lx2-May-06 19:13 
Questionoptimize drawing operations Pin
Sasuko2-May-06 3:19
Sasuko2-May-06 3:19 
AnswerRe: optimize drawing operations Pin
J4amieC2-May-06 3:35
J4amieC2-May-06 3:35 
GeneralRe: optimize drawing operations Pin
Sasuko2-May-06 7:25
Sasuko2-May-06 7:25 
GeneralRe: optimize drawing operations Pin
J4amieC2-May-06 7:44
J4amieC2-May-06 7:44 
GeneralRe: optimize drawing operations Pin
Susuko2-May-06 9:25
Susuko2-May-06 9:25 
QuestionWindow Form - menu,height/width? Pin
george ivanov2-May-06 3:18
george ivanov2-May-06 3:18 
AnswerRe: Window Form - menu,height/width? Pin
J4amieC2-May-06 3:32
J4amieC2-May-06 3:32 
AnswerRe: Window Form - menu,height/width? Pin
Larantz2-May-06 4:54
Larantz2-May-06 4:54 
QuestionIs the VS 2005 Webbrowser really ready for prime time? Pin
cweeks786812-May-06 3:09
cweeks786812-May-06 3:09 
AnswerRe: Is the VS 2005 Webbrowser really ready for prime time? Pin
Judah Gabriel Himango2-May-06 5:49
sponsorJudah Gabriel Himango2-May-06 5:49 
Questionhow+which controll should i use to create table+ text in one view Pin
junaidbilal2-May-06 2:32
junaidbilal2-May-06 2:32 

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.