Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
AnswerRe: Download? Pin
0x3c07-Dec-09 20:18
0x3c07-Dec-09 20:18 
Questionwhere can i find the Tutorial about CryStal Report? Pin
miss YY7-Dec-09 15:47
miss YY7-Dec-09 15:47 
AnswerRe: where can i find the Tutorial about CryStal Report? Pin
vivasaayi7-Dec-09 18:19
vivasaayi7-Dec-09 18:19 
QuestionWMI Uninstall application on remote computer (The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)) Pin
Jacob Dixon7-Dec-09 10:25
Jacob Dixon7-Dec-09 10:25 
AnswerRe: WMI Uninstall application on remote computer (The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)) Pin
Jacob Dixon7-Dec-09 10:26
Jacob Dixon7-Dec-09 10:26 
GeneralRe: WMI Uninstall application on remote computer (The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)) Pin
Jacob Dixon8-Dec-09 5:01
Jacob Dixon8-Dec-09 5:01 
GeneralRe: WMI Uninstall application on remote computer (The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)) [modified] Pin
Jacob Dixon8-Dec-09 5:16
Jacob Dixon8-Dec-09 5:16 
QuestionC# Datagridview Pin
Ronni Marker7-Dec-09 9:47
Ronni Marker7-Dec-09 9:47 
Hi,
I have a datagridview with a combobox.

to find out when the combobox have changed values i included the following code

private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
    ComboBox cbo = e.Control as ComboBox;
    if (cbo != null)
    {
        cbo.SelectionChangeCommitted += new EventHandler(cbo_SelectionChangeCommitted);
    }
}

private void cbo_SelectionChangeCommitted(object sender, EventArgs e)
{
        MessageBox.Show(((ComboBox)sender).Text.ToString());
}


But the problem for me is that I realised that the messagebox gets triggered once for the first time i change a value in a row. But the second time i change value it gets triggered twice, third time it gets triggered trice and so furth.

So, I was wondering if there is any way to only trigger the SelectionChangeCommitted once every time a user changes the combobox value?

It will be a rather large number of rows, and if a user updates 200 rows, then it will mean that SelectionChangeCommitted will be triggered 200 times at the end and I can't have that as the messagebox should be replaced with a webservice that will update a value in a database at runtime.

Any suggestion would be appreciated.
AnswerRe: C# Datagridview Pin
DaveyM697-Dec-09 10:45
professionalDaveyM697-Dec-09 10:45 
GeneralRe: C# Datagridview Pin
Ronni Marker7-Dec-09 10:52
Ronni Marker7-Dec-09 10:52 
AnswerRe: C# Datagridview Pin
ricmil427-Dec-09 10:49
ricmil427-Dec-09 10:49 
QuestionCommunication between 2 processes by DLL Pin
bonzaiholding7-Dec-09 9:30
bonzaiholding7-Dec-09 9:30 
AnswerRe: Communication between 2 processes by DLL Pin
Wes Aday7-Dec-09 9:49
professionalWes Aday7-Dec-09 9:49 
GeneralRe: Communication between 2 processes by DLL Pin
PIEBALDconsult7-Dec-09 17:13
mvePIEBALDconsult7-Dec-09 17:13 
AnswerRe: Communication between 2 processes by DLL Pin
Luc Pattyn7-Dec-09 10:03
sitebuilderLuc Pattyn7-Dec-09 10:03 
GeneralRe: Communication between 2 processes by DLL Pin
bonzaiholding7-Dec-09 10:38
bonzaiholding7-Dec-09 10:38 
GeneralRe: Communication between 2 processes by DLL Pin
Luc Pattyn7-Dec-09 10:49
sitebuilderLuc Pattyn7-Dec-09 10:49 
AnswerRe: Communication between 2 processes by DLL [modified] Pin
Abhinav S7-Dec-09 17:12
Abhinav S7-Dec-09 17:12 
QuestionUsing dlls that are not referenced. Pin
Tim Groven7-Dec-09 7:11
Tim Groven7-Dec-09 7:11 
AnswerRe: Using dlls that are not referenced. Pin
Md. Marufuzzaman7-Dec-09 7:34
professionalMd. Marufuzzaman7-Dec-09 7:34 
AnswerRe: Using dlls that are not referenced. [modified] Pin
PIEBALDconsult7-Dec-09 7:37
mvePIEBALDconsult7-Dec-09 7:37 
GeneralRe: Using dlls that are not referenced. Pin
Md. Marufuzzaman7-Dec-09 8:00
professionalMd. Marufuzzaman7-Dec-09 8:00 
GeneralRe: Using dlls that are not referenced. Pin
Tim Groven7-Dec-09 8:45
Tim Groven7-Dec-09 8:45 
QuestionMessage Removed Pin
7-Dec-09 6:22
professionalN_tro_P7-Dec-09 6:22 
AnswerRe: Is Save Blocking nor non-blocking Pin
Luc Pattyn7-Dec-09 7:12
sitebuilderLuc Pattyn7-Dec-09 7:12 

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.