SELECT CATEGORY
cc - NIDADAVOLU
Headlines News : praveen
Business Information of Andhra Pradesh*AP Business Directory*Trade services of AP*AP MFRS and Suppliers*AP shop keepers*About AP dealers*AP online Business*AP online directory*AP Trade Directory*AP Trade information*Industries of AP*Commrcial Establishments in AP*Business Information of AP*Departmental stores in AP*Companies in AP*AP Business details*Services of AP*AP services directory* About AP*AP Schools* AP Hospitals *AP Hotels
Business Information of Andhra Pradesh*AP Business Directory*Trade services of AP*AP MFRS and Suppliers*AP shop keepers*About AP dealers*AP online Business*AP online directory*AP Trade Directory*AP Trade information*Industries of AP*Commrcial Establishments in AP*Business Information of AP*Departmental stores in AP*Companies in AP*AP Business details*Services of AP*AP services directory* About AP*AP Schools* AP Hospitals *AP Hotels
Home » » cc

cc

Written By Bhimavaram on Tuesday, 15 October 2013 | 06:43


Group Gridview Columns in asp.net
Imports System.Data Imports System.Web.UI.WebControls Partial Class VBCode Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load If Not IsPostBack Then BindGridview() End If End Sub Protected Sub BindGridview() Dim dt As New DataTable() dt.Columns.Add("UserId", GetType(Int32)) dt.Columns.Add("UserName", GetType(String)) dt.Columns.Add("Education", GetType(String)) dt.Columns.Add("Location", GetType(String)) dt.Rows.Add(1, "SureshDasari", "B.Tech", "Chennai") dt.Rows.Add(2, "MadhavSai", "MBA", "Nagpur") dt.Rows.Add(3, "MaheshDasari", "B.Tech", "Nuzividu") dt.Rows.Add(4, "SureshDasari", "B.Tech", "Chennai") gvDetails.DataSource = dt gvDetails.DataBind() End Sub Protected Sub gvDetails_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Dim gvRow__1 As GridViewRow = e.Row If gvRow__1.RowType = DataControlRowType.Header Then Dim gvrow__2 As New GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Insert) Dim cell0 As New TableCell() cell0.Text = "Age Group" cell0.HorizontalAlign = HorizontalAlign.Center cell0.ColumnSpan = 2 Dim cell1 As New TableCell() cell1.Text = "No. Of Employees" cell1.HorizontalAlign = HorizontalAlign.Center cell1.ColumnSpan = 2 gvrow__2.Cells.Add(cell0) gvrow__2.Cells.Add(cell1) gvDetails.Controls(0).Controls.AddAt(0, gvrow__2) End If End Sub End Class
Share this article :

0 comments:

Speak up your mind

Tell us what you're thinking... !

Klematis
Add a description of the image here
Klematis
Add a description of the image here
Klematis
Add a description of the image here
Klematis
Add a description of the image here
saina
Add a description of the image here
saina
Add a description of the image here

రాత్రి వేళల్లో నిద్రించేటపుడు హఠాత్తుగా మూత్రం రావడం, రెండుమూడుసార్లు...
 
పసుపు ఔషధగుణాలు మెండుగా ఉన్నాయి. అందుకని దీన్ని రోజూ తినే ఆహారంలో...
మామిడికాయ సీజన్ అయిపోయినప్పటికీ మామిడి కాయ ఎక్కడైనా మార్కెట్లో...
 
మీరు వర్కింగ్ పారెంట్సా.. అయితే పిల్లల పెంపకంపై అధిక శ్రద్ధ అవసరమని...

change background


channelhyderabad.com
Many problems with state separate
Andhra pradesh political parties playing Games

Hotels around Hyderabad

Webmaster sites | News sites | Entertainment
channelhyderabad.com

kfc

We Recommend
Scrolling Images


Scrolling Images


scrolling pictures


 AVON   SNEAK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   PEEK   BOREWELLS 
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. NIDADAVOLU - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger