Click here to Skip to main content
15,921,179 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralASCII value Pin
yogeshpan27-Jan-08 23:15
yogeshpan27-Jan-08 23:15 
AnswerRe: ASCII value Pin
newc127-Jan-08 23:37
newc127-Jan-08 23:37 
GeneralPressing Enter Key Throwing on the Home Page Pin
.NET- India 27-Jan-08 23:11
.NET- India 27-Jan-08 23:11 
GeneralRe: Pressing Enter Key Throwing on the Home Page Pin
yogeshpan27-Jan-08 23:16
yogeshpan27-Jan-08 23:16 
GeneralRe: Pressing Enter Key Throwing on the Home Page Pin
Vasudevan Deepak Kumar28-Jan-08 0:09
Vasudevan Deepak Kumar28-Jan-08 0:09 
AnswerRe: Pressing Enter Key Throwing on the Home Page Pin
newc128-Jan-08 0:42
newc128-Jan-08 0:42 
QuestionBinding Dropdownlist to gridview column...... Pin
pranavcool27-Jan-08 22:16
pranavcool27-Jan-08 22:16 
AnswerRe: Binding Dropdownlist to gridview column...... Pin
newc127-Jan-08 23:18
newc127-Jan-08 23:18 
Hi,

It is possible to simply enumerate the columns collection of the GridView control and extract the required data. The following code will need to be run after the DataBind() method of the grid view has been executed:

for (int index = 0; index < grdTest.Columns.Count; index++)<br />
{<br />
    ddlTest.Items.Add(new ListItem(grdTest.Columns[index].HeaderText, index.ToString()));<br />
}


Using the code to then hook up events between the DropdownList and the GridView is another matter...

Clean code is the key to happiness.

GeneralProblem in creating menu items using XML Pin
dipak.dipak27-Jan-08 21:19
dipak.dipak27-Jan-08 21:19 
GeneralRe: Problem in creating menu items using XML Pin
Paddy Boyd27-Jan-08 22:50
Paddy Boyd27-Jan-08 22:50 
GeneralOpening a view new grid view within a grid view Pin
Anuradha61227-Jan-08 21:18
Anuradha61227-Jan-08 21:18 
GeneralRe: Opening a view new grid view within a grid view Pin
N a v a n e e t h27-Jan-08 21:50
N a v a n e e t h27-Jan-08 21:50 
GeneralASP.NEt editing gridview cells Pin
cool8327-Jan-08 20:54
cool8327-Jan-08 20:54 
QuestionGridView Paging Pin
AS@1327-Jan-08 20:34
AS@1327-Jan-08 20:34 
GeneralRe: GridView Paging Pin
N a v a n e e t h27-Jan-08 21:46
N a v a n e e t h27-Jan-08 21:46 
GeneralRe: GridView Paging Pin
AS@1327-Jan-08 23:17
AS@1327-Jan-08 23:17 
GeneralRe: GridView Paging Pin
Venkatesh Mookkan27-Jan-08 21:49
Venkatesh Mookkan27-Jan-08 21:49 
GeneralRe: GridView Paging Pin
Anuradha61227-Jan-08 21:54
Anuradha61227-Jan-08 21:54 
QuestionHow to Use Subreports in List to acheive ReportViewer Drillthrough Reports Functionality Pin
Bhaskar14198527-Jan-08 19:43
Bhaskar14198527-Jan-08 19:43 
QuestionDesigner Error in WorkFlow Project - VS 2005 Pin
Blumen27-Jan-08 17:28
Blumen27-Jan-08 17:28 
GeneralSQL Server Database permissions Pin
Nada Adel27-Jan-08 8:43
Nada Adel27-Jan-08 8:43 
GeneralFile Download Problem Pin
juli Paris27-Jan-08 8:00
juli Paris27-Jan-08 8:00 
GeneralRe: File Download Problem Pin
Tad McClellan27-Jan-08 8:20
professionalTad McClellan27-Jan-08 8:20 
GeneralRe: File Download Problem Pin
juli Paris27-Jan-08 9:14
juli Paris27-Jan-08 9:14 
GeneralRe: File Download Problem Pin
N a v a n e e t h27-Jan-08 16:01
N a v a n e e t h27-Jan-08 16:01 

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.