6
Reply

Convert sqldatetime to string at the footer

Becky Bloomwood

Becky Bloomwood

Feb 14 2011 8:34 AM
13.5k
Hi experts,
may I know is this the way to convert sqldatetime to string at the grid view footer? Cause there is an error for this word: .RowIndex


DateTime
startDate = Convert.ToDateTime(gvContract.DataKeys[e.RowIndex].Value.ToString());

Thanks:D


Answers (6)