Click here to Skip to main content
15,914,327 members
Home / Discussions / C#
   

C#

 
QuestionCalling C# dll from VC6 MFC application.. Possible ? Pin
Thierry Maurel3-Aug-05 3:10
Thierry Maurel3-Aug-05 3:10 
AnswerRe: Calling C# dll from VC6 MFC application.. Possible ? Pin
Joel Lucsy3-Aug-05 3:58
Joel Lucsy3-Aug-05 3:58 
AnswerRe: Calling C# dll from VC6 MFC application.. Possible ? Pin
Alomgir Miah3-Aug-05 7:36
Alomgir Miah3-Aug-05 7:36 
GeneralExpandableObjectConverter problem Pin
Shane Stevens3-Aug-05 3:09
Shane Stevens3-Aug-05 3:09 
GeneralRe: ExpandableObjectConverter problem Pin
leppie3-Aug-05 6:41
leppie3-Aug-05 6:41 
GeneralPreserving comments with XmlDocument.Load Pin
LannieK3-Aug-05 2:48
LannieK3-Aug-05 2:48 
GeneralRe: Preserving comments with XmlDocument.Load Pin
Lars Niedziolka3-Aug-05 14:19
Lars Niedziolka3-Aug-05 14:19 
GeneralDataGrid need HELP Pin
zaboboa3-Aug-05 2:44
zaboboa3-Aug-05 2:44 
Hello,

I got a problem with DataGrid events. I have an event:

private void GridTextBoxLeave (object sender, System.EventArgs e)<br />
		{<br />
			DataGridCell cell = this.dataGridStages.CurrentCell;<br />
			int r = cell.RowNumber;<br />
			int c = cell.ColumnNumber;<br />
			this.dataGridStages.EndEdit(this.dataGridStages.TableStyles["Stages"].GridColumnStyles[c], r, false);<br />
			<br />
			<br />
			object val = this.dataGridStages[r,c];<br />
		   Debug.WriteLine("Leaving Cell Row: "+r+" - Column: "+c+" - Value: "+val);<br />
		   <br />
		}


and definition of an event:

foreach( DataGridTextBoxColumn dataGridTextBoxColumn in this.styleStages.GridColumnStyles ) <br />
			{<br />
				dataGridTextBoxColumn.TextBox.Leave += new EventHandler(this.GridTextBoxLeave);<br />
				//dataGridTextBoxColumn.TextBox.Enter += new EventHandler(this.GridTextBoxEnter);<br />
				<br />
			}<br />
<br />
this.dataGridStages.DataSource = this.dataview;


The problem is, every time I add new row (adds it automatically in the grid if you click on the last row) no events are fired, which is good. Then, the moment I start typing in any cell of a new row, new row added (with * beside it) and Leave event fires, although I am still in the cell.
And when I leave the cell it fires again. What can I do to suppress the first fire of an event (while I am still in the cell).

Thank you
Generaltypecast problem Pin
Goebel3-Aug-05 0:30
Goebel3-Aug-05 0:30 
GeneralRe: typecast problem Pin
Guffa3-Aug-05 0:42
Guffa3-Aug-05 0:42 
GeneralRe: typecast problem Pin
Goebel3-Aug-05 2:15
Goebel3-Aug-05 2:15 
GeneralRe: typecast problem Pin
Goebel3-Aug-05 2:21
Goebel3-Aug-05 2:21 
GeneralRe: typecast problem Pin
Guffa3-Aug-05 5:55
Guffa3-Aug-05 5:55 
GeneralSetup surface Pin
mamudo3-Aug-05 0:16
mamudo3-Aug-05 0:16 
Generalruntime problem Pin
nidhelp2-Aug-05 22:50
nidhelp2-Aug-05 22:50 
GeneralRe: runtime problem Pin
Mohamad Al Husseiny2-Aug-05 23:18
Mohamad Al Husseiny2-Aug-05 23:18 
GeneralRe: runtime problem Pin
mav.northwind2-Aug-05 23:18
mav.northwind2-Aug-05 23:18 
GeneralRe: runtime problem Pin
Mohamad Al Husseiny2-Aug-05 23:30
Mohamad Al Husseiny2-Aug-05 23:30 
GeneralRe: runtime problem Pin
Mohamad Al Husseiny2-Aug-05 23:27
Mohamad Al Husseiny2-Aug-05 23:27 
GeneralRe: runtime problem Pin
nidhelp2-Aug-05 23:58
nidhelp2-Aug-05 23:58 
GeneralRe: runtime problem Pin
Mohamad Al Husseiny3-Aug-05 0:54
Mohamad Al Husseiny3-Aug-05 0:54 
GeneralPlease need advice.. Pin
KORCARI2-Aug-05 22:09
KORCARI2-Aug-05 22:09 
QuestionHow to change the Background Color of DateTime Picker ? Pin
pubududilena2-Aug-05 21:54
pubududilena2-Aug-05 21:54 
GeneralError in Office Programming Pin
Hovik Melkomian2-Aug-05 20:49
Hovik Melkomian2-Aug-05 20:49 
GeneralAscii codes Pin
Anonymous2-Aug-05 20:41
Anonymous2-Aug-05 20:41 

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.