0
hi,
As per me, this error occurs when you trying to access null object's properties / methods / public attribute or converting null object into other type of object.
here i think DataGridView1.CurrentRow.Cells["Column1"].Value has null value and your are trying to call is Tostring Method.
try...
data.slno = Convert.Tostring(DataGridView1.CurrentRow.Cells["Column1"].Value);
hope this will help you.
0
i have library file there i intialised database add parameters
now from application file i hv to update database
0
Hi,
Before assigning the value to your class object, can you display the value like this
var temp=DataGridView1.CurrentRow.Cells["Column1"].Value;
MessageBox.Show(temp);
Regards,
Iftikar