Click here to Skip to main content
15,901,001 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
kidus1213-Jun-07 15:28
kidus1213-Jun-07 15:28 
AnswerRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
Not Active13-Jun-07 16:50
mentorNot Active13-Jun-07 16:50 
GeneralRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
kidus114-Jun-07 2:34
kidus114-Jun-07 2:34 
GeneralRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
Not Active14-Jun-07 2:55
mentorNot Active14-Jun-07 2:55 
GeneralRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
kidus114-Jun-07 3:39
kidus114-Jun-07 3:39 
GeneralRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
Not Active14-Jun-07 3:53
mentorNot Active14-Jun-07 3:53 
AnswerRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
chand1013-Jun-07 18:41
chand1013-Jun-07 18:41 
QuestionStumped GridView Loop Pin
bjjonesey13-Jun-07 10:04
bjjonesey13-Jun-07 10:04 
I think I am missing something small, and I can't figure it out. Can anyone help? I am looping through a gridview pulling out a data field and putting it into an arraylist. Then putting that array list later into a string var. My code is as follows:

Dim emailaddresses = New ArrayList
Dim Key
For Each gvr As GridViewRow In GridView1.Rows
Key = GridView1.DataKeys(0)
emailaddresses.Add(Key.value.ToString())
Next gvr
'Trim Size
emailaddresses.TrimToSize()

Dim strMain As String ' Will be used to populate email address in message
Dim iList As Integer ' Var to count through the array
Dim iCount As Integer ' Count of recs in array
iList = 0 ' set iList to 0
'strMain = ""
iCount = emailaddresses.Count() ' get size of array

Do Until iList = iCount
'Populate string with array record
strMain = strMain & emailaddresses.Item(iList) & ","
emailaddresses.Remove(iList)
'Count up 1
iList = iList + 1

Loop

My problem that I am having is no matter how many records are in the array the first record populates all of the array. So if my grid has 5 unique values, it will display 5 items, but all are the first record from the gridview, not 5 different items. I think this has something to do with the way I am looping through the gridview. This is ASP.NET 2.0.
THANKS!

BJJONESEY

AnswerRe: Stumped GridView Loop Pin
Venkatesh Mookkan13-Jun-07 17:05
Venkatesh Mookkan13-Jun-07 17:05 
AnswerRe: Stumped GridView Loop Pin
bjjonesey14-Jun-07 4:43
bjjonesey14-Jun-07 4:43 
QuestionDatagrid - Counting the Number of Checkboxes that are Checked Within a Datagrid Pin
wood060113-Jun-07 9:16
wood060113-Jun-07 9:16 
AnswerRe: Datagrid - Counting the Number of Checkboxes that are Checked Within a Datagrid Pin
Sankar Komma 13-Jun-07 9:57
Sankar Komma 13-Jun-07 9:57 
GeneralRe: Datagrid - Counting the Number of Checkboxes that are Checked Within a Datagrid Pin
wood060113-Jun-07 10:04
wood060113-Jun-07 10:04 
GeneralRe: Datagrid - Counting the Number of Checkboxes that are Checked Within a Datagrid Pin
Sankar Komma 13-Jun-07 10:07
Sankar Komma 13-Jun-07 10:07 
GeneralRe: Datagrid - Counting the Number of Checkboxes that are Checked Within a Datagrid Pin
wood060113-Jun-07 12:00
wood060113-Jun-07 12:00 
Questionusing master page Pin
Tiger45613-Jun-07 6:17
Tiger45613-Jun-07 6:17 
AnswerRe: using master page Pin
ednrgc13-Jun-07 7:04
ednrgc13-Jun-07 7:04 
AnswerRe: using master page Pin
Not Active13-Jun-07 11:29
mentorNot Active13-Jun-07 11:29 
GeneralRe: using master page Pin
Tiger45613-Jun-07 20:22
Tiger45613-Jun-07 20:22 
GeneralRe: using master page Pin
Not Active14-Jun-07 2:00
mentorNot Active14-Jun-07 2:00 
AnswerAccess text box contents in Edit view [modified] Pin
bjjonesey13-Jun-07 5:25
bjjonesey13-Jun-07 5:25 
Questioncrystal Report ActiveX Pin
Ali el13-Jun-07 5:24
Ali el13-Jun-07 5:24 
QuestionIs it possible to turn off the RowEditing event in a grid view? Pin
MBursill13-Jun-07 5:16
MBursill13-Jun-07 5:16 
AnswerRe: Is it possible to turn off the RowEditing event in a grid view? Pin
ali bagheri13-Jun-07 5:40
ali bagheri13-Jun-07 5:40 
GeneralRe: Is it possible to turn off the RowEditing event in a grid view? Pin
MBursill13-Jun-07 6:35
MBursill13-Jun-07 6:35 

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.