By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

DataGrid, great problem

P: n/a
my datagrid, e.g store (1)Prodcut id (2) product name (3)unitprice)
I found a great problem under the following case:-

row(1) User keyin the data, Press Save, i can save the content.
I design some function to bring the default item e.g (F3)-product id will
become "TOYS", and unitprice is $50.00
now, for a new row(2), if use didn't keyin anyting, and just use my shortcut
key.
It cannot save in the dataset . Why ???
if i key in something in row(2), I will see a new row in row(3) . and I CAN
save the record.
If i didn't key anything , there is now new row in row(3) , and i can't save
anything.

Please help ~
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I solve the problem by
Dim myRow = myTable.newrow()
myrow("productid") ="TOYs"
mytable.row.add(myRow)

"Agnes" <ag***@dynamictech.com.hk> glsD:O9****************@TK2MSFTNGP15.phx .gbl...
my datagrid, e.g store (1)Prodcut id (2) product name (3)unitprice)
I found a great problem under the following case:-

row(1) User keyin the data, Press Save, i can save the content.
I design some function to bring the default item e.g (F3)-product id will
become "TOYS", and unitprice is $50.00
now, for a new row(2), if use didn't keyin anyting, and just use my
shortcut key.
It cannot save in the dataset . Why ???
if i key in something in row(2), I will see a new row in row(3) . and I
CAN save the record.
If i didn't key anything , there is now new row in row(3) , and i can't
save anything.

Please help ~

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.