List of data from the gridview or repeater control ?

Posted by Arunjith under ASP.NET on 6/13/2012 | Points: 10 | Views : 2184 | Status : [Member] | Replies : 4
How to retrieve list of data from the Repeater or Gridview in Asp.net




Responses

Posted by: Gemamgall on: 6/27/2012 [Member] Starter | Points: 25

Up
0
Down
Can you please elaborate your question and if possible give an example

Thanks and Regards,

Vinay Gandhi
www.quadtechindia.com

Arunjith, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ajay.Kalol on: 6/28/2012 [Member] Starter | Points: 25

Up
0
Down
From GridView:
Gridview declared in .aspx Page then:

Use for Loop for retrieving Data:

for(i=0; i<gv.rows.count;i++) 

{
string str = gv.rows(i).cells(0).text
// Whatever you want to write
}


Ajay
ajaypatelfromsanthal.blogspot.in

Arunjith, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bhupentiwari on: 6/28/2012 [Member] Starter | Points: 25

Up
0
Down
use this syntax

foreach (GridViewRow gvRow in GridView1.Rows)

{


}


Thanks n Regards
Bhupendra Tiwari

Arunjith, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Premalatha on: 6/28/2012 [Member] Starter | Points: 25

Up
0
Down
Go for this link

http://stackoverflow.com/questions/7397674/how-to-bind-gridview-inside-a-repeater

Premalatha
Software Engineer

Arunjith, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response