Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# equivelant of Eval() Pin
Marc Clifton18-May-05 5:47
mvaMarc Clifton18-May-05 5:47 
GeneralProblem in Uploading Files Pin
Anand for every one18-May-05 4:54
Anand for every one18-May-05 4:54 
Questionwhat does the keyword "static" mean? Pin
Sasuko18-May-05 4:43
Sasuko18-May-05 4:43 
AnswerRe: what does the keyword "static" mean? Pin
Tom Larsen18-May-05 4:53
Tom Larsen18-May-05 4:53 
AnswerRe: what does the keyword "static" mean? Pin
Peter Vertes18-May-05 5:09
Peter Vertes18-May-05 5:09 
GeneralRe: what does the keyword "static" mean? Pin
leppie18-May-05 9:34
leppie18-May-05 9:34 
Generalupdate particular attribute's value from xml file Pin
ksanju100018-May-05 4:23
ksanju100018-May-05 4:23 
QuestionArraylist bound to datagrid problem when arraylist is part of another class? Pin
spAAwn18-May-05 4:23
spAAwn18-May-05 4:23 
Hi!

I have a class that looks like this:

using System;
using System.Collections;

namespace AreaData
{
[Serializable()]
public class Wrapper
{
ArrayList _Data = new ArrayList();
int _MovieLength = 0;

public Wrapper()
{
}

public Wrapper(ArrayList a, int l)
{
_Data = a;
_MovieLength = l;
}

public ArrayList Data
{
get{return _Data;}
}

public int MovieLength
{
get{return _MovieLength;}
set{_MovieLength = value;}
}
}
}

In my mainform I have a datagrid which is bound to the ArrayList of this class. Everything works fine, except when I try to change a value in the datagrid at runtime, then at first the change doesnt commit, and after that when I click somewhere else I get an error box:

"Error when committing the row to the original data store"

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index. Do you want to correct the value?


Everyting works fine, when the arraylist is located in the same class as the datagrid!

Any solution to this would be really appreciated!

thanks
/Rickard


Generalreal challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 4:15
jinzhecheng18-May-05 4:15 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Marc Clifton18-May-05 4:21
mvaMarc Clifton18-May-05 4:21 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 4:41
jinzhecheng18-May-05 4:41 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Tom Larsen18-May-05 4:48
Tom Larsen18-May-05 4:48 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 5:04
jinzhecheng18-May-05 5:04 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Marc Clifton18-May-05 5:41
mvaMarc Clifton18-May-05 5:41 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
S. Senthil Kumar18-May-05 5:48
S. Senthil Kumar18-May-05 5:48 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 6:21
jinzhecheng18-May-05 6:21 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Marc Clifton18-May-05 6:53
mvaMarc Clifton18-May-05 6:53 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
18-May-05 6:59
suss18-May-05 6:59 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
DavidNohejl18-May-05 6:55
DavidNohejl18-May-05 6:55 
Generaldeleting particular node element from xml file through LOOP Pin
ksanju100018-May-05 4:13
ksanju100018-May-05 4:13 
QuestionAVISaveOptions Invisible Font? Pin
Member 190300618-May-05 4:07
Member 190300618-May-05 4:07 
GeneralSelecting row Index of datagrid Pin
Ashishhere18-May-05 3:34
Ashishhere18-May-05 3:34 
GeneralRe: Selecting row Index of datagrid Pin
Marc Clifton18-May-05 4:17
mvaMarc Clifton18-May-05 4:17 
GeneralComboBox - remove focus Pin
NortonC18-May-05 2:05
NortonC18-May-05 2:05 
GeneralRe: ComboBox - remove focus Pin
Marc Clifton18-May-05 2:12
mvaMarc Clifton18-May-05 2: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.