Public Class WebForm3<br /> Inherits System.Web.UI.Page<br /> <br /> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br /> <br /> Dim dt As New DataTable<br /> If GlobalVariable.containsListBox2Item = "X,Y Coordinate" Then<br /> dt.Columns.Add("X Coordinate")<br /> dt.Columns.Add("Y Coordinate")<br /> Dim mr As DataRow<br /> mr = dt.NewRow<br /> mr("X Coordinate") = "909090"<br /> mr("Y Coordinate") = "109209"<br /> dt.Rows.Add(mr)<br /> GridView1.DataSource = dt<br /> End If<br /> If GlobalVariable.containsListBox2Item = "Latitude, Longitude" Then<br /> dt.Columns.Add("Latitude")<br /> dt.Columns.Add("Longitude")<br /> Dim mr As DataRow<br /> mr = dt.NewRow<br /> mr("Latitude") = "100909"<br /> mr("Longitude") = "1002929"<br /> dt.Rows.Add(mr)<br /> GridView1.DataSource = dt<br /> End If<br /> GridView1.DataBind()<br /> <br /> End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)