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 PostYa know Queen, not that I have ever tried it, but would not a disconnected ado recordset be sufficient as a data source?
Just a thought from left field, if not from beyond... :)Good Luck
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.