Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I want to get all the value in a column in gridview. i am not using datatable or dataset.

eg:

ProductID productname price
1 keyboard 150
2 pendrive 80
3 mouse 100

Think it is the gridview. i need to get all the price amt in the column price

Anybody can help?.
Posted
Comments
Sandeep Mewara 23-Apr-12 1:26am    
Where are you stuck?

You say you are not using datatable/dataset. Ok. Why? How are you getting data from DB and passing to grid? Can you elaborate your plan?
parithi vr 26-Apr-12 4:57am    
i use viewstate to bind
Sandeep Mewara 26-Apr-12 9:41am    
And what there in Viewstate exactly? Not a datatable in it?
Lalit PB 24-Apr-12 8:19am    
What datasource you bind to GridView?
parithi vr 26-Apr-12 4:57am    
i use viewstate to bind

 
Share this answer
 
Hi,

you can also add values in gridview column using array and sqlDatasource
for this refer following sites
Gridview is attached with SqlDataSource control How show runtime updated data[^]

Best Luck
Happy Coding :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900