E
entrodus
I know this must be an easy question to answer
but i cant seem to find out how to do it.
I am an experienced programmer in delphi but just started to learn
..NET.
What i am trying to do is:
1 - create a DataTable (Ok, done it)
2 - dynamic bind its columns with some textboxes in the form (Ok, done
it)
3 - set the DataTable in "Insert Mode" (How?!?!?)
4 - Have user to fill the values he wants and...
5 - Update the DataTable and save all the data in XML. (using WriteXML
i guess)
My problem is that i cant find a way to set the DataTable to insert
mode!!!
I dont really now if this logic applies to the DOT.NET framework.
The closest i got to my needs is to make a New DataRow and then add it
back to the DataTable. But since some of the columns are mandatory (not
null), i cant add it back, or set my own default values...
To put it in simple words... how do i initialize a DataTable in order
to have its values set without having to add a new DataRow...
but i cant seem to find out how to do it.
I am an experienced programmer in delphi but just started to learn
..NET.
What i am trying to do is:
1 - create a DataTable (Ok, done it)
2 - dynamic bind its columns with some textboxes in the form (Ok, done
it)
3 - set the DataTable in "Insert Mode" (How?!?!?)
4 - Have user to fill the values he wants and...
5 - Update the DataTable and save all the data in XML. (using WriteXML
i guess)
My problem is that i cant find a way to set the DataTable to insert
mode!!!
I dont really now if this logic applies to the DOT.NET framework.
The closest i got to my needs is to make a New DataRow and then add it
back to the DataTable. But since some of the columns are mandatory (not
null), i cant add it back, or set my own default values...
To put it in simple words... how do i initialize a DataTable in order
to have its values set without having to add a new DataRow...