Click here to Skip to main content
15,886,094 members
Home / Discussions / Database
   

Database

 
QuestionLoading(Importing) Data into SQL Server 2005 Pin
sm_sadhik4-Aug-09 5:00
sm_sadhik4-Aug-09 5:00 
AnswerRe: Loading(Importing) Data into SQL Server 2005 Pin
i.j.russell5-Aug-09 11:42
i.j.russell5-Aug-09 11:42 
QuestionInvalid column name error? Pin
cdietschrun4-Aug-09 4:25
cdietschrun4-Aug-09 4:25 
AnswerRe: Invalid column name error? Pin
Blue_Boy4-Aug-09 4:44
Blue_Boy4-Aug-09 4:44 
GeneralRe: Invalid column name error? Pin
cdietschrun4-Aug-09 4:50
cdietschrun4-Aug-09 4:50 
GeneralRe: Invalid column name error? Pin
cdietschrun4-Aug-09 4:58
cdietschrun4-Aug-09 4:58 
GeneralRe: Invalid column name error? [modified] Pin
Blue_Boy4-Aug-09 5:40
Blue_Boy4-Aug-09 5:40 
QuestionHow to edit Dataset value (NOT DATA GRID) Pin
sacr834-Aug-09 0:12
sacr834-Aug-09 0:12 
Hi All,

i want to edit DataSet value before binding to GridView. How can i do that..?


conn.open();

string result="select name,address,age";
sqlCommand cmnd=new sqlCommand(result);
sqlDataAdapter ad=new sqlDataAdapter(result,conn);
DataSet ds=new DataSet();
result.Connection=conn;
ad.SelectCommand=result;

// in here i want to edit (divide age value by 2) before bind data to gridview.

ad.fill(ds);
GridView1.DataSource=ds;
GridView1.DataBind();

conn.close();


i want to divide age value by 2 before bind data to gridview.How can i do that...???

Thank you very much .....

CheeN

AnswerRe: How to edit Dataset value (NOT DATA GRID) Pin
Kschuler4-Aug-09 3:14
Kschuler4-Aug-09 3:14 
GeneralRe: How to edit Dataset value (NOT DATA GRID) Pin
sacr835-Aug-09 20:21
sacr835-Aug-09 20:21 
AnswerRe: How to edit Dataset value (NOT DATA GRID) Pin
Andy_L_J4-Aug-09 9:38
Andy_L_J4-Aug-09 9:38 
Questionsql server comparing two huge tables Pin
ps_prakash023-Aug-09 21:26
ps_prakash023-Aug-09 21:26 
AnswerRe: sql server comparing two huge tables Pin
Mycroft Holmes3-Aug-09 23:18
professionalMycroft Holmes3-Aug-09 23:18 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash023-Aug-09 23:50
ps_prakash023-Aug-09 23:50 
GeneralRe: sql server comparing two huge tables Pin
David Skelly4-Aug-09 2:10
David Skelly4-Aug-09 2:10 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash024-Aug-09 2:26
ps_prakash024-Aug-09 2:26 
GeneralRe: sql server comparing two huge tables Pin
David Skelly4-Aug-09 6:20
David Skelly4-Aug-09 6:20 
GeneralRe: sql server comparing two huge tables Pin
Mycroft Holmes4-Aug-09 16:12
professionalMycroft Holmes4-Aug-09 16:12 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash024-Aug-09 17:44
ps_prakash024-Aug-09 17:44 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash024-Aug-09 17:39
ps_prakash024-Aug-09 17:39 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash025-Aug-09 2:09
ps_prakash025-Aug-09 2:09 
AnswerRe: sql server comparing two huge tables Pin
Blue_Boy3-Aug-09 23:24
Blue_Boy3-Aug-09 23:24 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash024-Aug-09 0:28
ps_prakash024-Aug-09 0:28 
GeneralRe: sql server comparing two huge tables Pin
Blue_Boy4-Aug-09 4:46
Blue_Boy4-Aug-09 4:46 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash024-Aug-09 21:52
ps_prakash024-Aug-09 21:52 

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.