Hello,
I'm using the following code to access the footer SUM of 2 columns, i'm getting a problem when the Grid is empty so there are no footer to display
I'm using the following code to access the footer SUM of 2 columns, i'm getting a problem when the Grid is empty so there are no footer to display
Private Sub DataGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles DataGrid.ItemDataBound
If TypeOf e.Item Is GridFooterItem Then
Dim footerItem As GridFooterItem = DirectCast(e.Item, GridFooterItem)
Dim strUSD As Decimal = footerItem("BalanceUSD").Text
Dim strLBP As Decimal = footerItem("BalanceLBP").Text
Dim LBPvalue As Decimal = strLBP * 1507.5
Dim totalvalue As Decimal = strUSD + LBPvalue
'MsgBox(totalvalue)
End If
End Sub
How do i handle when no data is in the grid?
Regards,
Mike