S
Sal
I have what I feel should be a simple operation, but I cannot seem to
get it to work. I have a table from a dataset that is bound to winform
controls. I would like to add a record, set some default values, and
the allow the nuser to edit the data. I am successful in adding the
data, but the controls remain blank. How do I position the dataset on
the new row and have that reflected in the controls?
Here is my code:
Dim drwTemp As DataRow = dsTars1.Tranactions.NewRow()
drwTemp("TransDate") = Date.Now
drwTemp("transcnt") = 2
drwTemp("actCode") = "2000"
drwTemp("Amount") = 10000
dsTars1.Tranactions.Rows.Add(drwTemp)
Thanks,
Sal
get it to work. I have a table from a dataset that is bound to winform
controls. I would like to add a record, set some default values, and
the allow the nuser to edit the data. I am successful in adding the
data, but the controls remain blank. How do I position the dataset on
the new row and have that reflected in the controls?
Here is my code:
Dim drwTemp As DataRow = dsTars1.Tranactions.NewRow()
drwTemp("TransDate") = Date.Now
drwTemp("transcnt") = 2
drwTemp("actCode") = "2000"
drwTemp("Amount") = 10000
dsTars1.Tranactions.Rows.Add(drwTemp)
Thanks,
Sal