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

C#

 
QuestionCasting error question Pin
kanchoette10-Nov-09 22:06
kanchoette10-Nov-09 22:06 
AnswerRe: Casting error question Pin
Covean10-Nov-09 22:25
Covean10-Nov-09 22:25 
GeneralRe: Casting error question Pin
kanchoette10-Nov-09 23:23
kanchoette10-Nov-09 23:23 
GeneralRe: Casting error question Pin
Covean10-Nov-09 23:29
Covean10-Nov-09 23:29 
GeneralRe: Casting error question Pin
PIEBALDconsult11-Nov-09 3:40
mvePIEBALDconsult11-Nov-09 3:40 
QuestionCurrency formatting [modified] Pin
sajitk2010-Nov-09 22:02
sajitk2010-Nov-09 22:02 
AnswerMessage Closed Pin
10-Nov-09 22:16
stancrm10-Nov-09 22:16 
GeneralRe: Currency formatting Pin
sajitk2010-Nov-09 22:26
sajitk2010-Nov-09 22:26 
GeneralMessage Closed Pin
10-Nov-09 22:42
stancrm10-Nov-09 22:42 
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 

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.