Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want load gridview with updating some rows.so which query is used?..please give me answer of the question
Posted
Comments
OriginalGriff 5-Oct-11 4:14am    
Sorry, but that isn't really a question we can answer.
We need better information as to what you are trying to do.
Use the "Improve question" widget to edit your question and provide better information.

You need to use a Select query to get the row values and then bind the result to the GridView's DataSource.
Introducing the GridView Control[^] should help you get started.
 
Share this answer
 
Comments
krupalmehta 5-Oct-11 4:24am    
i use select query for load rows in gridview and also use update query to updating particular row.but whenever i run page update query fired but it can't update row.and when i refresh the page it updates rows..
use the below query

SqlDataAdapter da= new sqldataadapter("Query",connectionObject);
Dataset ds=new Dataset();
da.Fill(ds);
Return(ds);

GridView.DataSource=ds.Tables[0];
gridview.DataBind();
 
Share this answer
 
v2
Comments
Abhinav S 5-Oct-11 4:19am    
Code tags added.

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