Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
GeneralRe: Currency formatting [modified] Pin
sajitk2010-Nov-09 23:49
sajitk2010-Nov-09 23:49 
QuestionHow to edit and manage group policy through C# & ASP.Net ? Pin
Ibrahim Mostafa10-Nov-09 21:55
Ibrahim Mostafa10-Nov-09 21:55 
AnswerRe: How to edit and manage group policy through C# & ASP.Net ? Pin
Dave Kreskowiak11-Nov-09 7:44
mveDave Kreskowiak11-Nov-09 7:44 
GeneralRe: How to edit and manage group policy through C# & ASP.Net ? Pin
Ibrahim Mostafa11-Nov-09 22:21
Ibrahim Mostafa11-Nov-09 22:21 
QuestionProblem in updating multiple rows of a single column with different values from C# Pin
Member 236780010-Nov-09 21:48
Member 236780010-Nov-09 21:48 
AnswerRe: Problem in updating multiple rows of a single column with different values from C# Pin
Dave Kreskowiak11-Nov-09 7:38
mveDave Kreskowiak11-Nov-09 7:38 
GeneralRe: Problem in updating multiple rows of a single column with different values from C# Pin
Member 236780011-Nov-09 8:17
Member 236780011-Nov-09 8:17 
QuestionProblems with VirtualMode of the DataGridView Pin
SquallNaruto10-Nov-09 20:46
SquallNaruto10-Nov-09 20:46 
Hi Guys,

i need the NewRowNeededEvent of the DataGridView. So i set the VirtualMode Property to true.
But if this property is set to true, i need to set the cell value by myself, otherwise it vanisches if i leave the cell.

So i've tried to save the value - the cell is a ComboBox where i select a value - in the CellValidatinEvent.

But it doesnt work. The value property of the cell is not changing it is still null.

Here is some code that you can understand what i mean.
<br />
<br />
 private void aufwandDataGridView_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)<br />
        {<br />
            DataGridViewComboBoxCell cell =<br />
            aufwandDataGridView.CurrentCell as DataGridViewComboBoxCell;<br />
<br />
            cell.ReadOnly = false;<br />
<br />
            if (aufwandDataGridView.IsCurrentCellDirty)<br />
            {<br />
<br />
                aufwandDataGridView.CommitEdit<br />
                    (DataGridViewDataErrorContexts.Commit);<br />
            }<br />
<br />
            //e.FormattedValue contains the item thart i selected in the ComboBox<br />
            cell.Value = e.FormattedValue;<br />
            //cell.Value is not changing it is still null. no exception is thrown.<br />
        }<br />


Can anyone please help me?

Kind regards and thx in advance
Me
AnswerRe: Problems with VirtualMode of the DataGridView Pin
SquallNaruto10-Nov-09 21:39
SquallNaruto10-Nov-09 21:39 
GeneralRe: Problems with VirtualMode of the DataGridView Pin
SquallNaruto10-Nov-09 22:44
SquallNaruto10-Nov-09 22:44 
Questionproblem with socket programing for image transformation Pin
mehrdad33310-Nov-09 20:40
mehrdad33310-Nov-09 20:40 
AnswerRe: problem with socket programing for image transformation Pin
Paulo Zemek11-Nov-09 9:28
Paulo Zemek11-Nov-09 9:28 
GeneralRe: problem with socket programing for image transformation Pin
mehrdad33311-Nov-09 19:58
mehrdad33311-Nov-09 19:58 
GeneralRe: problem with socket programing for image transformation Pin
Paulo Zemek12-Nov-09 12:24
Paulo Zemek12-Nov-09 12:24 
GeneralRe: problem with socket programing for image transformation Pin
mehrdad33313-Nov-09 7:19
mehrdad33313-Nov-09 7:19 
QuestionHow to call unmanaged C++ DLL in C#.NET Pin
Pranav Thakur10-Nov-09 19:36
Pranav Thakur10-Nov-09 19:36 
AnswerRe: How to call unmanaged C++ DLL in C#.NET Pin
Christian Graus10-Nov-09 20:21
protectorChristian Graus10-Nov-09 20:21 
AnswerRe: How to call unmanaged C++ DLL in C#.NET Pin
Nicholas Butler11-Nov-09 1:24
sitebuilderNicholas Butler11-Nov-09 1:24 
GeneralRe: How to call unmanaged C++ DLL in C#.NET Pin
suzalinda3-Dec-09 12:50
suzalinda3-Dec-09 12:50 
QuestionWindows Form updating problem Pin
MathewPV10-Nov-09 19:06
MathewPV10-Nov-09 19:06 
AnswerRe: Windows Form updating problem Pin
Christian Graus10-Nov-09 19:35
protectorChristian Graus10-Nov-09 19:35 
QuestionListView annoying Pin
Xmen Real 10-Nov-09 19:00
professional Xmen Real 10-Nov-09 19:00 
QuestionOpening file with in its application Pin
Hum Dum10-Nov-09 18:21
Hum Dum10-Nov-09 18:21 
AnswerRe: Opening file with in its application Pin
Christian Graus10-Nov-09 18:32
protectorChristian Graus10-Nov-09 18:32 
GeneralRe: Opening file with in its application Pin
Hum Dum10-Nov-09 20:25
Hum Dum10-Nov-09 20:25 

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.