View Single Post
Old August 23rd, 2012, 08:48 PM
rmanapul rmanapul is offline
Authorized User
Points: 109, Level: 2
Points: 109, Level: 2 Points: 109, Level: 2 Points: 109, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: May 2012
Posts: 29
Thanks: 11
Thanked 0 Times in 0 Posts

here is the complete code of the program:

Imports AlumniTblModel
Partial Class Management_Sample
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        Using myEntities As New AlumniTblEntities

            Dim allProvinces = From province In myEntities.ProvinceTbls
                               Order By province.Province
                               Select province.Province

            ProvinceGrid.DataSource = allProvinces
            ProvinceGrid.Columns[0].HeaderText = "Provinces"

        End Using
    End Sub
End Class
when i typed the HeaderText, the intellisense does not show. and the Text "Provinces" does not appear as red color it's supposed to appear as red colored i think? can you also help me how to do paginating and sorting (when the header title is clicked) in this gridview programmatically? where you can only show 5 or 10 items per page.

Last edited by rmanapul; August 23rd, 2012 at 08:51 PM..