Northwind Traders Sample Application Documentation Home | Online Sample | Documentation

CustomerDemographicsGrid.ascx.vb Language: Font Size:
User Controls: CustomerDemographicsGrid.ascx.vb   CustomerDemographicsGrid.ascx   CustomerDemographicsFilter.ascx.vb   CustomerDemographicsFilter.ascx   CustomerDemographicsDetail.ascx.vb   CustomerDemographicsDetail.ascx   
Business Layer: CustomerDemographics.vb   CustomerDemographics.vb   
Data Layer: CustomerDemographics.vb   CustomerDemographics.vb   
View: CustomerDemographics.sql   
Stored Procedures: CustomerDemographics.sql   
Typed Datasets: CustomerDemographics.xsd   CustomerDemographics.vb   
Imports System
Imports TechmaticaNorthwindBusiness
Imports Techmatica.Web.UI.WebControls
Imports TechmaticaNorthwindHelper

Namespace TechmaticaNorthwindUserInterface
    Public MustInherit Class CustomerDemographicsGrid
        Inherits BaseGrid
        Protected CustomerDemographicsLabel As System.Web.UI.WebControls.Label
        Public MyDataGrid As DotNetGenieDataGrid
        Private designerPlaceholderDeclaration As Object
        Public Overridable Sub BindGrid()
            Try 
                MyBase.BaseBindGrid(Constants.CustomerDemographics)
            Catch Exception As System.Exception
                Throw Exception
            End Try
        End Sub
        <System.Diagnostics.DebuggerStepThrough()>  _
        Private Sub InitializeComponent()
        End Sub
        Private Sub LoadClass(ByVal Sender As Object, ByVal E As System.EventArgs)
            MyBase.LoadGrid("CustomerDemographicsDPK", Constants.SortOrderAscending)
        End Sub
        Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
            Me.InitializeComponent
            AddHandler MyBase.Load, AddressOf Me.LoadClass
            If (MyDataGrid.GridDisplayMode = DataGridDisplayMode.DetailGridMode) Then
                If (Not (System.Web.HttpContext.Current.Request.QueryString(Constants.QueryStringLinkFields)) Is Nothing) Then
                    If (System.Web.HttpContext.Current.Request.QueryString(Constants.QueryStringLinkFields).Length > 0) Then
                        CustomerDemographicsLabel.Text = String.Concat(New String() {CustomerDemographicsLabel.Text, " --> Linking Columns: ", System.Web.HttpContext.Current.Request.QueryString(Constants.QueryStringLinkFields)})
                    End If
                End If
            End If
            MyBase.OnInit(e)
        End Sub
    End Class
End Namespace