alperen aydin

alperen aydin

  • NA
  • 5
  • 3.8k

System.NullReferenceException

Feb 27 2011 1:35 PM
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)