Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

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

$
0
0

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..don't know how to convert datagridview time value for passing..

Here is my snapshot:

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

Error snap:

Here is my conversion code:

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


Thanks & Regards RAJENDRAN M


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>