If reader.Read() Then
If e.Row.RowType = DataControlRowType.Footer Then
e.Row.Cells(2).Text = Math.Round(Convert.ToDouble(reader.Item("Total1Q")),2).ToString
e.Row.Cells(3).Text = Math.Round(Convert.ToDouble(reader.Item("Total2Q")),2).ToString
e.Row.Cells(4).Text = Math.Round(Convert.ToDouble(reader.Item("Total3Q")),2).ToString
e.Row.Cells(5).Text = Math.Round(Convert.ToDouble(reader.Item("Total4Q")),2).ToString
End If
End If
OR
If reader.Read() Then
If e.Row.RowType = DataControlRowType.Footer Then
e.Row.Cells(2).Text = reader.Item("Total1Q").ToString.("0.##")
e.Row.Cells(3).Text = reader.Item("Total2Q").ToString.("0.##")
e.Row.Cells(4).Text = reader.Item("Total3Q").ToString.("0.##")
e.Row.Cells(5).Text = reader.Item("Total4Q").ToString.("0.##")
End If
End If
HTH
Ashok