Mini Kabibi Habibi
Imports Microsoft.VisualBasic
Imports System
Imports DevExpress.Web.ASPxGridView
Imports System.Web.UI
Partial Public Class Summary_Group
Inherits Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If (Not IsPostBack) Then
grid.ExpandRow(1)
End If
End Sub
Protected Sub grid_CustomUnboundColumnData(ByVal sender As Object, ByVal e As ASPxGridViewColumnDataEventArgs)
If e.Column.FieldName = "Total" Then
Dim price As Decimal = CDec(e.GetListSourceFieldValue("UnitPrice"))
Dim quantity As Integer = Convert.ToInt32(e.GetListSourceFieldValue("Quantity"))
e.Value = price * quantity
End If
End Sub
End Class