Click here to Skip to main content
15,921,028 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need Help Pin
Abhijit Jana7-Dec-07 0:28
professionalAbhijit Jana7-Dec-07 0:28 
GeneralRe: Need Help Pin
arslanjatt7-Dec-07 0:39
arslanjatt7-Dec-07 0:39 
GeneralRe: Need Help Pin
Abhijit Jana7-Dec-07 0:55
professionalAbhijit Jana7-Dec-07 0:55 
Generalwpf c# event handler Pin
angels7776-Dec-07 23:59
angels7776-Dec-07 23:59 
GeneralRe: wpf c# event handler Pin
Ujjaval Modi7-Dec-07 0:18
Ujjaval Modi7-Dec-07 0:18 
GeneralRe: wpf c# event handler Pin
angels7777-Dec-07 19:49
angels7777-Dec-07 19:49 
GeneralRe: wpf c# event handler Pin
angels7779-Dec-07 0:43
angels7779-Dec-07 0:43 
Questioninserting datagridview rows in database(windows application) Pin
avvaru.murali6-Dec-07 23:26
avvaru.murali6-Dec-07 23:26 
Hi,
iam doing windows application with c#..

i have to insert datagridview rows into database...
with my code data is inserting into database and at the same
time it is giving error ("unhandled datatype mismatch")
i check with all my database datatypes and text what iam typing.

so please provide some help..


mycode is

string connection = @"Provider=Microsoft.Jet.OLEDB.4.0;" +
@"Data source= D:\inventory\management\management\database\muralicell.mdb";

OleDbConnection myconnection = new OleDbConnection(connection);
myconnection.Open();
for (int i = 0; i < inwardgrid.Rows.Count; i++)
{
string insproducts = "INSERT INTO product_details(productid,Invoice_number,productname,units,received_date)VALUES('" + inwardgrid.Rows[i].Cells[0].Value + "','" + inwardinvno.Text + "','" + inwardgrid.Rows[i].Cells[1].Value + "','" + inwardgrid.Rows[i].Cells[2].Value + "','" + inwardrecdate.Text + "')";
OleDbCommand insprocommand = new OleDbCommand(insproducts, myconnection);
insprocommand.ExecuteNonQuery();
insprocommand.Dispose();
}
myconnection.Close();

murali krishna

GeneralRe: inserting datagridview rows in database(windows application) Pin
Ujjaval Modi7-Dec-07 0:03
Ujjaval Modi7-Dec-07 0:03 
QuestionC# :how to access textbox values of form1 from form2 Pin
kssknov6-Dec-07 22:59
kssknov6-Dec-07 22:59 
GeneralRe: C# :how to access textbox values of form1 from form2 Pin
DaveyM696-Dec-07 23:35
professionalDaveyM696-Dec-07 23:35 
GeneralRe: C# :how to access textbox values of form1 from form2 Pin
Giorgi Dalakishvili6-Dec-07 23:49
mentorGiorgi Dalakishvili6-Dec-07 23:49 
QuestionHow is the Ado.Net Entity framework is good considering the performance Pin
sarangpani6-Dec-07 22:47
sarangpani6-Dec-07 22:47 
QuestionControlToValidate is Null Problem Pin
xueqing826-Dec-07 22:46
xueqing826-Dec-07 22:46 
GeneralExtracting images from a webpage stream. Pin
aj.esler6-Dec-07 22:09
aj.esler6-Dec-07 22:09 
QuestionHandling globalization/localization when converting string to double Pin
panks_r6-Dec-07 21:44
panks_r6-Dec-07 21:44 
Generalremoting and opening ports [modified] Pin
cignox16-Dec-07 21:13
cignox16-Dec-07 21:13 
QuestionHow can I get the name of the calling method? Pin
JoeRip6-Dec-07 20:58
JoeRip6-Dec-07 20:58 
AnswerRe: How can I get the name of the calling method? Pin
JoeRip6-Dec-07 21:06
JoeRip6-Dec-07 21:06 
AnswerRe: How can I get the name of the calling method? Pin
NikoTanghe6-Dec-07 21:20
NikoTanghe6-Dec-07 21:20 
GeneralRe: How can I get the name of the calling method? Pin
JoeRip8-Dec-07 18:51
JoeRip8-Dec-07 18:51 
Generaldatagridview question Pin
E_Gold6-Dec-07 20:35
E_Gold6-Dec-07 20:35 
GeneralRe: datagridview question Pin
Nouman Bhatti6-Dec-07 21:17
Nouman Bhatti6-Dec-07 21:17 
GeneralResize Form Pin
A.Asif6-Dec-07 19:58
A.Asif6-Dec-07 19:58 
GeneralRe: Resize Form Pin
N a v a n e e t h6-Dec-07 20:06
N a v a n e e t h6-Dec-07 20:06 

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.