Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: Failed To Connect MySQL via C# Pin
musefan4-Aug-09 1:57
musefan4-Aug-09 1:57 
GeneralRe: Failed To Connect MySQL via C# Pin
Nemesis Fixx4-Aug-09 3:29
Nemesis Fixx4-Aug-09 3:29 
QuestionAccess Export using late binding [modified] Pin
BNeSiH4-Aug-09 0:44
BNeSiH4-Aug-09 0:44 
QuestionDelimiters for Tokenizer Pin
gamer11274-Aug-09 0:35
gamer11274-Aug-09 0:35 
AnswerRe: Delimiters for Tokenizer Pin
Super Lloyd4-Aug-09 0:42
Super Lloyd4-Aug-09 0:42 
GeneralRe: Delimiters for Tokenizer Pin
gamer11274-Aug-09 3:58
gamer11274-Aug-09 3:58 
AnswerRe: Delimiters for Tokenizer Pin
OriginalGriff4-Aug-09 1:20
mveOriginalGriff4-Aug-09 1:20 
QuestionHow to edit Dataset value (NOT DATA GRID) Pin
sacr834-Aug-09 0:09
sacr834-Aug-09 0:09 
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
kstls4-Aug-09 0:25
kstls4-Aug-09 0:25 
GeneralRe: How to edit Dataset value (NOT DATA GRID) Pin
sacr834-Aug-09 1:42
sacr834-Aug-09 1:42 
GeneralRe: How to edit Dataset value (NOT DATA GRID) Pin
sacr834-Aug-09 1:47
sacr834-Aug-09 1:47 
GeneralRe: How to edit Dataset value (NOT DATA GRID) Pin
kstls4-Aug-09 2:14
kstls4-Aug-09 2:14 
AnswerRe: How to edit Dataset value (NOT DATA GRID) Pin
Fired.Fish.Gmail4-Aug-09 1:36
Fired.Fish.Gmail4-Aug-09 1:36 
GeneralRe: How to edit Dataset value (NOT DATA GRID) Pin
sacr834-Aug-09 2:01
sacr834-Aug-09 2:01 
AnswerRe: How to edit Dataset value (NOT DATA GRID) Pin
vinodkrebc4-Aug-09 2:20
vinodkrebc4-Aug-09 2:20 
QuestionChange the EditedFormattedValue of a cell in a DataGridView Pin
RobScripta3-Aug-09 23:51
professionalRobScripta3-Aug-09 23:51 
AnswerRe: Change the EditedFormattedValue of a cell in a DataGridView Pin
Hristo-Bojilov4-Aug-09 0:27
Hristo-Bojilov4-Aug-09 0:27 
GeneralRe: Change the EditedFormattedValue of a cell in a DataGridView Pin
RobScripta4-Aug-09 0:45
professionalRobScripta4-Aug-09 0:45 
GeneralRe: Change the EditedFormattedValue of a cell in a DataGridView Pin
Hristo-Bojilov4-Aug-09 0:57
Hristo-Bojilov4-Aug-09 0:57 
GeneralRe: Change the EditedFormattedValue of a cell in a DataGridView Pin
RobScripta4-Aug-09 1:01
professionalRobScripta4-Aug-09 1:01 
GeneralRe: Change the EditedFormattedValue of a cell in a DataGridView Pin
Hristo-Bojilov4-Aug-09 1:35
Hristo-Bojilov4-Aug-09 1:35 
GeneralRe: Change the EditedFormattedValue of a cell in a DataGridView Pin
RobScripta4-Aug-09 2:28
professionalRobScripta4-Aug-09 2:28 
AnswerRe: Change the EditedFormattedValue of a cell in a DataGridView Pin
RobScripta4-Aug-09 0:51
professionalRobScripta4-Aug-09 0:51 
QuestionHow to compare the text in two files using c#? Pin
svt gdwl3-Aug-09 23:46
svt gdwl3-Aug-09 23:46 
AnswerRe: How to compare the text in two files using c#? Pin
stancrm4-Aug-09 0:01
stancrm4-Aug-09 0:01 

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.