Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AddNew

Status
Not open for further replies.

goransaler

IS-IT--Management
Mar 6, 2003
56
SE
If
have a table like this

Activity

Id Starttime Endtime Activity


and i like to generate a new row in the dataset
but i like the starttime field to be the datetime now
if i use a textbox i understand how i can do it but if i don't
how do i do

this.BindingContext[Dsactivity,"Activity"].EndCurrentEdit();
this.BindingContext[Dsactivity,"Activity"].AddNew();
???????


please help

 
just in a dataset...

DataRow ll_row = MyDataSet.Tables[0].NewRow();
ll_row["activity"]=DateTime.Now;

not sure if this is where you were heading or not...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top