3
Answers

get specific value from Datareader

Vamsi k

Vamsi k

6y
890
1

Hi All,

I am displaying 100  records in gridview using execute reader.

dr contains 100 records.
 
Gridview.datasource=dr;
Gridview1.Databind;
 
Requirements: 
Gridview should display 100 records. 
 
get specific record value i,e dr["initial_rate];
 
How can i get that specific record value.
 
i want to store that specific value into a variable which can be used to check condition. 
 
Please help me on this requirement. It is urgent
 
 
Answers (3)