An unhandled exception of type System.FormatException occurred in mscorlib.dll

Last Reply 2 days ago By dharmendr

Posted 5 days ago

getting error when autocomplete is selecting in datagridview textbox

 

 

 For Each row In dgv.Rows
            row.Cells(dgv.Columns(5).Index).Value = (Convert.ToDouble(row.Cells(dgv.Columns(3).Index).ToString) * Convert.ToDouble(row.Cells(dgv.Columns(4).Index).ToString))
            
        Next

 

You are viewing reply posted by: dharmendr 2 days ago.
Posted 2 days ago Modified on 2 days ago

Hi nirmal90,

Please share your complete code. How do we know which even you are writing the code.

Also share the valow of the below code which you are trying to convert to double.

row.Cells(dgv.Columns(3).Index).ToString
row.Cells(dgv.Columns(4).Index).ToString

 

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html