InvalidOperationException but why?
-
Hi guys, i have a form, which, on mouseclick, opens another form. Half of the time it's all well. But sometimes i get an InvalidOperationException with the message that this can't be done while resizing an automatically filled column. Now, on the second form there is a gridview, which is filled at the LOAD event. Creating Form 2:
FrmPaths f = new FrmPaths(); f.Show(this);
Load event:foreach (string s in PathManagment.Directories) { dataSet1.Tables["paths"].Rows.Add(new object[] { (s) }); }
Could anybody please help me? -
Hi guys, i have a form, which, on mouseclick, opens another form. Half of the time it's all well. But sometimes i get an InvalidOperationException with the message that this can't be done while resizing an automatically filled column. Now, on the second form there is a gridview, which is filled at the LOAD event. Creating Form 2:
FrmPaths f = new FrmPaths(); f.Show(this);
Load event:foreach (string s in PathManagment.Directories) { dataSet1.Tables["paths"].Rows.Add(new object[] { (s) }); }
Could anybody please help me? -
sounds strange ....... do you get this exception when you are debugging? if so, { then there's no problem :D } else { i don't know :D }
yes i got this exception when i was debugging. i even know where it came from. I had ColumnsHeaderHeigthSizeMode on Auto by mistake. I turned it off and now the problem is gone. I'd like to understand what the problem is, anyway. Nobody knows? Btw. why isn't there a problem if i was debugging? Thank you
-
yes i got this exception when i was debugging. i even know where it came from. I had ColumnsHeaderHeigthSizeMode on Auto by mistake. I turned it off and now the problem is gone. I'd like to understand what the problem is, anyway. Nobody knows? Btw. why isn't there a problem if i was debugging? Thank you
-
i don't know whats wrong with VS, i have noticed that when im in debugging mode sometimes i get exception but when im running the project normally that when not in debugging mode, it runs fine. and mostly the exeception is null reference exception.