| | |
looping thru database results
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
Im trying to create a datagrid that will display an image instead of what is actually stored in the database. For instance if the result of a zodiac is leo, then show the leo image, or if it is cancer, show the cancer symbol, etc.. I am using a datagrid to show the results of the query but want to populate it with images instead of strings which is how they are stored in the database. Any ideas would be greatly appreciated or point me to a good tute on the subject. thanks
Always do what you wish you could..
are you asking about how to loop thru database ? i think like this
VB.NET Syntax (Toggle Plain Text)
count = Me.DataSet.Table_Name.Count For i = 0 To count - 1 m = Me.DataSet. Table_Name.Rows(i).Item("Column_name") Select Case m Case "Leo" Display image of Leo in Me.DataGrid1.Item(i, 0) . . . etc End Select
"give only what u willing to receive "
![]() |
Similar Threads
- How to call a PHP function from Javascript and return the results back into Javascrip (PHP)
- PHP results in Blank Screen (PHP)
- Sorting Database Results (PHP)
- perl script help re: scope/structure for noob (Perl)
- Tutorial: Search a Database (ASP)
- Timer Question (Visual Basic 4 / 5 / 6)
- new and in need (ASP)
Other Threads in the VB.NET Forum
- Previous Thread: some provide me interface
- Next Thread: Help Needed With OOP Bank Account..VB.Net
| Thread Tools | Search this Thread |
.net .net2008 2008 access add advanced application array basic beginner browser button buttons center click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic employees excel exists fade filter forms generatetags html images input intel internet listview map mobile module monitor msaccess mysql net number objects open pan panel pdf picturebox picturebox2 port position print printing printpreview problem regex reuse right-to-left save search searchvb.net serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winforms wpf wrapingcode xml year





