Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Add New Record


Message #1 by "Nick" <nick@g...> on Wed, 7 Aug 2002 17:01:51 +0700
How to get Record count when i using DataTable, i want to ADD new record in Name and Address how ??
For each objectRow in ObjectRowX.GetChildRow
      orow = oTable.NewRow()
      orow("row")=ObjectRow("Name")
      oTable.Row.Add(oRow)
      For each objectRowX in ObjectRowN.GetChildRow
          orow = oTable.NewRow()
          orow("row")=ObjectRowN("Address")
          oTable.Row.Add(oRow)
      Next
Next

the table shown like below
----------------------------------------------
NAME        ADDRESS
----------------------------------------------
Anie
                Avenue St
                Dark Angel St
Rika     
                Gelang St
                Marcors St
                BamBam St
I want The table Like this below
----------------------------------------------
NAME        ADDRESS
----------------------------------------------
Anie
                Avenue St
                Dark Angel St
                Add New
Rika     
                Gelang St
                Marcors St
                BamBam St                
                Add New
Add New

and i want to know how to get recordcount  in datatable ??



  Return to Index