Error : string was not recognized as a valid Timespan...

  • Thread starter Thread starter Rajendran M
  • Start date Start date
R

Rajendran M

Guest
Hi everyone,

I need some immediate help from this error..I am passing values from datagridview selected row to form..I have one column name called "timeout" in that column I am storing time value..when I double click on any row all the values are passing from datagridview to form except the time value..dont know how to convert datagridview time value for passing..

Here is my snapshot:

91c1a61f14ac33eac9ffea1e2a9920da._.jpg


the above datagridview time wants to display on timeout filed when i double click on any row...

Error snap:

0998c1d5b70c6961036dc6f2ca63840d._.jpg


Here is my conversion code:

this.dtptime.Value = System.DateTime.Now.Add(TimeSpan.Parse(row.Cells["Time_out"].ToString()));




Thanks & Regards RAJENDRAN M

Continue reading...
 
Back
Top