Click here to Skip to main content
15,948,339 members
Home / Discussions / C#
   

C#

 
AnswerRe: Create C# dll that acts like a C++ dll Pin
V.10-Jan-07 21:07
professionalV.10-Jan-07 21:07 
QuestionFreeze Row/Col in DataGrid Pin
swjam10-Jan-07 12:42
swjam10-Jan-07 12:42 
AnswerRe: Freeze Row/Col in DataGrid Pin
swjam11-Jan-07 0:30
swjam11-Jan-07 0:30 
AnswerRe: Freeze Row/Col in DataGrid Pin
ednrgc11-Jan-07 2:37
ednrgc11-Jan-07 2:37 
QuestionWindows Forms Custom Control Reference Pin
Mr. Rogers10-Jan-07 12:29
Mr. Rogers10-Jan-07 12:29 
AnswerRe: Windows Forms Custom Control Reference Pin
Nader Elshehabi10-Jan-07 13:21
Nader Elshehabi10-Jan-07 13:21 
AnswerRe: Windows Forms Custom Control Reference Pin
Mike Hankey11-Jan-07 21:15
mveMike Hankey11-Jan-07 21:15 
QuestionInserting a Record in Access database using tableAdapter. Pin
dsovino10-Jan-07 12:16
dsovino10-Jan-07 12:16 
Hi everyone, i'm a little bit stuck. D'Oh! | :doh:

While i was amazing myself discovering the dateset design wizard (which means that me querys methods will get waaaay shorter now Laugh | :laugh: ), i'm not able to insert a row in the Access database.

I'm using a query to load a treeview, which works just fine:

<br />
<br />
private void GenerateTreeview()<br />
{<br />
treeView1.Nodes.Clear();<br />
onAirDataSetTableAdapters.contenidoTableAdapter contAdap = new Loteria.onAirDataSetTableAdapters.contenidoTableAdapter(); <br />
DataTable tabla = contAdap.ObtenerDatos();            <br />
DataView dataViewHijos = new DataView(tabla);<br />
<br />
and so on....<br />
<br />
}<br />


now, i want to add a node on the treeview, and store that into the database table where I have my items. I tried this on a try/catch/finally, just to make sure i'm not getting any errors. I call generateTreeview() function on finally, to reload my Treeview.

<br />
try<br />
{<br />
onAirDataSetTableAdapters.contenidoTableAdapter contAdap = new Loteria.onAirDataSetTableAdapters.contenidoTableAdapter();<br />
contAdap.InsertarCategoria(dlg.nombre, nodoPadretempID);                    <br />
}<br />
catch (OleDbException ode)<br />
{<br />
MessageBox.Show(ode.ToString(), "Error de Conexion con base de datos");<br />
}<br />
<br />
catch (Exception er)<br />
{<br />
MessageBox.Show(er.ToString());<br />
}<br />
<br />
finally<br />
{<br />
GenerateTreeview();<br />
}<br />
<br />


Everything works ok, i get the updated Treeview while running my app, but the database doesn't get updated.

I restart the app and i get the same initial treeview, and of course, no changes are being performed on the mdb...

PLEASE HELP!!

thanks for eveyones time

OMG | :OMG:



kiweed
QuestionAny one knows how to access Oracle DB on Unix using C# service application ? Pin
btsrinath10-Jan-07 11:51
btsrinath10-Jan-07 11:51 
AnswerRe: Any one knows how to access Oracle DB on Unix using C# service application ? Pin
ednrgc11-Jan-07 2:39
ednrgc11-Jan-07 2:39 
GeneralRe: Any one knows how to access Oracle DB on Unix using C# service application ? Pin
btsrinath11-Jan-07 5:11
btsrinath11-Jan-07 5:11 
Questionsearching an index with FindIndex() method Pin
Yustme10-Jan-07 10:48
Yustme10-Jan-07 10:48 
AnswerRe: searching an index with FindIndex() method Pin
Stefan Troschuetz10-Jan-07 11:18
Stefan Troschuetz10-Jan-07 11:18 
AnswerRe: searching an index with FindIndex() method Pin
hpjchobbes10-Jan-07 12:50
hpjchobbes10-Jan-07 12:50 
GeneralRe: searching an index with FindIndex() method [modified] Pin
Yustme10-Jan-07 20:49
Yustme10-Jan-07 20:49 
QuestionCapture video Pin
Yevgeny Efter10-Jan-07 9:55
Yevgeny Efter10-Jan-07 9:55 
AnswerRe: Capture video Pin
Christian Graus10-Jan-07 11:32
protectorChristian Graus10-Jan-07 11:32 
AnswerRe: Capture video Pin
Andrei Ungureanu10-Jan-07 21:02
Andrei Ungureanu10-Jan-07 21:02 
GeneralRe: Capture video Pin
Yevgeny Efter11-Jan-07 2:06
Yevgeny Efter11-Jan-07 2:06 
QuestionRead Unstructured PDF FILES In C# Pin
adnanrafiq10-Jan-07 9:34
adnanrafiq10-Jan-07 9:34 
AnswerRe: Read Unstructured PDF FILES In C# Pin
Christian Graus10-Jan-07 11:32
protectorChristian Graus10-Jan-07 11:32 
QuestionMicrosoft JScript runtime error: 'TV_FilePlan_Data' is undefined Pin
Melissa4118310-Jan-07 9:25
Melissa4118310-Jan-07 9:25 
QuestionForms Pin
BlitzPackage10-Jan-07 7:41
BlitzPackage10-Jan-07 7:41 
AnswerRe: Forms Pin
Christian Graus10-Jan-07 7:44
protectorChristian Graus10-Jan-07 7:44 
GeneralRe: Forms Pin
BlitzPackage10-Jan-07 8:11
BlitzPackage10-Jan-07 8:11 

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.