Kindly tell me how can I insert data from a bi-dimensional array ex. array1(10,10) to a DataGrid/DBGrid and visa-versa.
Please explain with a sample source code.
RahulV 16 Junior Poster in Training
Recommended Answers
Jump to PostDo you know how to populate data from/to a DB into/from a DataGrid/DBGrid ?
Database table is a 2D array only.
Jump to PostHi,
As the name Indicates, DataGrid and DBGrid need to be bound to a database Recordset object. You cannot bind a LocalArray to db grid.. If at all you want to bind the array, Save the Array in some temp table in database and open the recordset and Bind..
…
Jump to PostHi vb5prgmr,
Actually Disconnected Datasets are once, wherein you actually connect recordset to the database table (as usual normal procedure),
and then disconnect the active connection of the recordset by setting it to nothing.. Again a database table required...binding array/system table/datatable to datagrid can be easily done …
All 9 Replies
debasisdas 580 Posting Genius Featured Poster
RahulV 16 Junior Poster in Training
RahulV 16 Junior Poster in Training
QVeen72 104 Posting Shark
vb5prgrmr 143 Posting Virtuoso
QVeen72 104 Posting Shark
ankush.mukherje 0 Junior Poster
RahulV 16 Junior Poster in Training
pankaj7040 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.