Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid_ItemDataBound converting the item value from secs to HH:MM:SS

Status
Not open for further replies.

cplsplsprogrammer

Programmer
Apr 18, 2005
42
US
Hello All,

I am building a ASP.Net webpage using C#. I have a datagrid where some columns have time values in seconds. What is the best way to convert them into HH:MM:SS format? Can anyone please tell me if we change the format while binding the row to the grid? How can we determine the which column we are in like determinging what is the column header of the item? I get the data from a sql server database. Should we do it in SQL? Can anyone please help me with this?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top