|
-
Mar 23rd, 2006, 02:40 AM
#1
Thread Starter
Hyperactive Member
datagridview cell format
hihi.
i am currently using the daatgridview to display my image under the column of the datagridview. but i cant add text under the same column below the image. how can i add text to the column. i need the text for the image descripton.
how can i set the cell fromat in a loop where alternaltive it will set it as DataGridViewImageColumn then the next row as DataGridViewTextBoxColumn?
???
ocw
-
Mar 23rd, 2006, 03:25 AM
#2
Re: datagridview cell format
Notice the names you're using: DataGridViewImageColumn and DataGridViewTextBoxColumn. That's a clue that the type applies to the entire column. The DataGridView is basically a visual representation of data that is, or could be, stored in a database. A database will not allow you to store text and images in the same column. You'll need to put the text for each image in an adjacent column.
-
Mar 23rd, 2006, 03:49 AM
#3
Thread Starter
Hyperactive Member
Re: datagridview cell format
thanks jmcilhinney, for the suggestion.
i have encountered a new problem which is that if the gridveiwimagecolumn did not have an image inserted, it will show an image with a cross in the square box. how can i get rid of that?
???
ocw
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|