Click here to Skip to main content
15,904,497 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSession asp.net Pin
AnhTin25-Jun-07 23:24
AnhTin25-Jun-07 23:24 
AnswerRe: Session asp.net Pin
Fred_Smith25-Jun-07 23:50
Fred_Smith25-Jun-07 23:50 
GeneralRe: Session asp.net Pin
AnhTin26-Jun-07 15:44
AnhTin26-Jun-07 15:44 
GeneralRe: Session asp.net Pin
Fred_Smith26-Jun-07 21:55
Fred_Smith26-Jun-07 21:55 
AnswerRe: Session asp.net Pin
Manas Bhardwaj26-Jun-07 0:14
professionalManas Bhardwaj26-Jun-07 0:14 
AnswerRe: Session asp.net Pin
Sandeep Akhare26-Jun-07 1:21
Sandeep Akhare26-Jun-07 1:21 
AnswerRe: Session asp.net Pin
Vasudevan Deepak Kumar26-Jun-07 1:37
Vasudevan Deepak Kumar26-Jun-07 1:37 
QuestionGrid View Column Pin
Senseicads25-Jun-07 23:17
Senseicads25-Jun-07 23:17 
I have a gridview that is populated via a datatable. What I am wanting to do is take the raw data from the datatable and create a set of bound columns and populate those columns with the values in the datatable. my code currently is as follows.
<br />
        Dim datValTable As DataTable<br />
<br />
        ' Create a dataTable to populate with the data Returned from the select statement.<br />
        Dim datTable As DataTable<br />
        datTable = New DataTable("ViewTable")<br />
<br />
        datTable = PopulateDrillDown(datTable)<br />
        GridView1.DataSource = datTable<br />
        GridView1.DataBind()<br />
        GridView1.Columns.Clear()<br />
<br />
        Dim bFld As BoundField = Nothing<br />
        bFld = New BoundField()<br />
        bFld.DataField = "view_id"<br />
        bFld.HeaderText = "ViewID"<br />
        GridView1.Columns.Add(bFld)<br />
<br />
        GridView1.DataBind()


This adds the ViewID column to all the columns from the datatable. which is obv not what i want. I need to be able to create a subset of columns from the datatable and populate my gridview with that. Can anyone point me in the right direction. Do i need to create a new datatable and populate that then bind on the gridview?

Cheers

Ian
AnswerRe: Grid View Column Pin
Fred_Smith25-Jun-07 23:37
Fred_Smith25-Jun-07 23:37 
QuestionRSS Reader/ Writer Pin
wEb GuRu...25-Jun-07 22:34
wEb GuRu...25-Jun-07 22:34 
AnswerRe: RSS Reader/ Writer Pin
RepliCrux26-Jun-07 1:16
RepliCrux26-Jun-07 1:16 
AnswerRe: RSS Reader/ Writer Pin
RepliCrux26-Jun-07 1:18
RepliCrux26-Jun-07 1:18 
Questioncrystal report export button does not work Pin
rkherath25-Jun-07 22:00
rkherath25-Jun-07 22:00 
Questionhow to use custom validator at client side Pin
Hemant Garg25-Jun-07 21:10
Hemant Garg25-Jun-07 21:10 
AnswerRe: how to use custom validator at client side Pin
Viral Upadhyay25-Jun-07 21:26
Viral Upadhyay25-Jun-07 21:26 
QuestionGUI Problem..Displaying correctly in IE BUT problem in Mozilla Pin
goutham.sriharsha25-Jun-07 20:56
goutham.sriharsha25-Jun-07 20:56 
AnswerRe: GUI Problem..Displaying correctly in IE BUT problem in Mozilla Pin
SHatchard26-Jun-07 0:33
SHatchard26-Jun-07 0:33 
AnswerRe: GUI Problem..Displaying correctly in IE BUT problem in Mozilla Pin
Guffa26-Jun-07 2:20
Guffa26-Jun-07 2:20 
QuestionStranger in AJAX. [modified] Pin
mohantfor.net25-Jun-07 20:30
mohantfor.net25-Jun-07 20:30 
AnswerRe: Stranger in AJAX. Pin
Viral Upadhyay25-Jun-07 21:29
Viral Upadhyay25-Jun-07 21:29 
GeneralRe: Stranger in AJAX. Pin
mohantfor.net25-Jun-07 21:34
mohantfor.net25-Jun-07 21:34 
AnswerRe: Stranger in AJAX. Pin
Tamimi - Code25-Jun-07 23:56
Tamimi - Code25-Jun-07 23:56 
AnswerRe: Stranger in AJAX. Pin
Christian Graus26-Jun-07 0:03
protectorChristian Graus26-Jun-07 0:03 
AnswerRe: Stranger in AJAX. Pin
Vasudevan Deepak Kumar26-Jun-07 1:39
Vasudevan Deepak Kumar26-Jun-07 1:39 
QuestionHow to Open edit and Save office documents in an Asp.Net application Pin
SKP2425-Jun-07 20:25
SKP2425-Jun-07 20:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.