DataGrid, great problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Agnes

    DataGrid, great problem

    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 ~


  • Agnes

    #2
    Re: DataGrid, great problem

    I solve the problem by
    Dim myRow = myTable.newrow( )
    myrow("producti d") ="TOYs"
    mytable.row.add (myRow)

    "Agnes" <agnes@dynamict ech.com.hk> ¼¶¼g©ó¶l¥ó·s»D: O9jT%23AVVFHA.3 540@TK2MSFTNGP1 5.phx.gbl...[color=blue]
    > 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 ~
    >[/color]


    Comment

    Working...