4
Answers

System.NullReferenceException

alperen aydin

alperen aydin

13y
3.4k
1
Hi;

I get the above exception in this code line.

DataGridView1.Rows[iIndex].Cells[1].Value = iGLCount.ToString();

datagridview is defined in the Designer.cs i dont think i need the Troubleshooting tip "Use the 'new' keyword to create an object instance"

in some forums i did read that i can not modify/set cells directly so i shoul enable the edit mode like ;

DataGridView1.BeginEdit();  and i got nada.

Any ideas ?

Answers (4)