Becky Bloomwood

Becky Bloomwood

  • NA
  • 119
  • 285.5k

Convert sqldatetime to string at the footer

Feb 14 2011 8:34 AM
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)