Click here to Skip to main content
15,902,635 members
Home / Discussions / C#
   

C#

 
GeneralRe: Suggestions on how to model a simple validation program Pin
Super Lloyd26-Aug-09 3:56
Super Lloyd26-Aug-09 3:56 
AnswerRe: Suggestions on how to model a simple validation program Pin
N a v a n e e t h26-Aug-09 5:20
N a v a n e e t h26-Aug-09 5:20 
QuestionRe: Suggestions on how to model a simple validation program Pin
neualex26-Aug-09 17:49
neualex26-Aug-09 17:49 
AnswerRe: Suggestions on how to model a simple validation program Pin
N a v a n e e t h26-Aug-09 18:25
N a v a n e e t h26-Aug-09 18:25 
QuestionRe: Suggestions on how to model a simple validation program Pin
neualex27-Aug-09 1:56
neualex27-Aug-09 1:56 
AnswerRe: Suggestions on how to model a simple validation program Pin
N a v a n e e t h27-Aug-09 2:23
N a v a n e e t h27-Aug-09 2:23 
GeneralRe: Suggestions on how to model a simple validation program Pin
neualex27-Aug-09 2:30
neualex27-Aug-09 2:30 
Questionproblem with data table Pin
myinstincts26-Aug-09 2:39
myinstincts26-Aug-09 2:39 
I am filling my datatable initially and databinding it to data gridview.code is written in button_click event.I am selecting an item from dropdownlist and when the button is clicked it is getting stored in the table.My problem is that the secondly selected item from dropdownlist is overwriting the first selected item instead of appending in the new row.I know some looping has to be done, but how and where?

OleDbCommand pay_cmd2 = new OleDbCommand("select group_details.Group,description_details.Description,description_details.Unit_price from group_details,description_details where description_details.Description='" + descrptndpdnlt .SelectedItem .Value + "' AND group_details.Group_id=(select Group_id from description_details where Description='" + descrptndpdnlt .SelectedItem .Value + "')", con2);
This is my code
da_pay.SelectCommand = pay_cmd2;
da_pay.Fill(ds_pay ,"details");
DataTable pay_dt=ds_pay .Tables ["details"];


con2.Close();

GridView2.DataSource = pay_dt;

GridView2.DataBind();
AnswerRe: problem with data table Pin
baranils26-Aug-09 4:47
baranils26-Aug-09 4:47 
Questionsyntax error...plz help me Pin
ankitjain111026-Aug-09 2:02
ankitjain111026-Aug-09 2:02 
AnswerRe: syntax error...please help me Pin
Tony Richards26-Aug-09 2:14
Tony Richards26-Aug-09 2:14 
GeneralRe: syntax error...please help me Pin
ankitjain111026-Aug-09 2:22
ankitjain111026-Aug-09 2:22 
AnswerSame question Pin
Not Active26-Aug-09 2:15
mentorNot Active26-Aug-09 2:15 
GeneralRe: Same question Pin
Tony Richards26-Aug-09 2:18
Tony Richards26-Aug-09 2:18 
QuestionDisplay DataGridView Dynamically Pin
Ankit At Codeproject26-Aug-09 1:44
Ankit At Codeproject26-Aug-09 1:44 
AnswerRe: Display DataGridView Dynamically Pin
stancrm26-Aug-09 1:51
stancrm26-Aug-09 1:51 
QuestionListView Context Menu Pin
kanchoette26-Aug-09 1:43
kanchoette26-Aug-09 1:43 
AnswerRe: ListView Context Menu Pin
stancrm26-Aug-09 1:48
stancrm26-Aug-09 1:48 
GeneralRe: ListView Context Menu Pin
kanchoette26-Aug-09 1:49
kanchoette26-Aug-09 1:49 
QuestionProblem in connecting with SQL database on client machine Pin
Affan Toor26-Aug-09 1:29
Affan Toor26-Aug-09 1:29 
AnswerRe: Problem in connecting with SQL database on client machine Pin
Henry Minute26-Aug-09 3:48
Henry Minute26-Aug-09 3:48 
GeneralRe: Problem in connecting with SQL database on client machine Pin
Affan Toor26-Aug-09 21:39
Affan Toor26-Aug-09 21:39 
GeneralRe: Problem in connecting with SQL database on client machine Pin
Henry Minute27-Aug-09 0:04
Henry Minute27-Aug-09 0:04 
Questiongettin some error @ run time Pin
ankitjain111026-Aug-09 0:20
ankitjain111026-Aug-09 0:20 
AnswerRe: gettin some error @ run time Pin
Luc Pattyn26-Aug-09 0:29
sitebuilderLuc Pattyn26-Aug-09 0:29 

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.