Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

SPGridview and picture library

  Asked By: Kaci Peck         Date: May 20, 2009      Category: Sharepoint      Views: 406
 

I am developing a webpart using SPGridView and I would like to show
images from picture library using the grid. Now, my question is how to
display images horizontally in SPGridView. I want to implement
"RepeatColumns" and "RepeatDirection" type of stuff present in DataList.

My idea is for the webpart to display atleast 5 images in a row
depending on the width of the webpart. Also, I want to enable grouping
on SPGridView.

Tagged:        

 

2 Answers Found

 
Answer #1       Answered By: Shanda Nolan          Answered On: May 20, 2009       

I don't think you will be able to accomplish both of these if you want to bind
the SPGridView to the underlying library. You could create an SPGridview with
the appropriate columns and then populate them manually by waling the Library
and building each row. When the Grouping changes you could stop populating the
row and generate a new grouping.

 
Answer #2       Answered By: Bailey Lewis          Answered On: May 20, 2009       

I did create a similar display  using SharePoint Designer
using DataView whose layout is "5 column repeating row". So I was
wondering if we could do the same in Visual Studio 2005.

 
Didn't find what you were looking for? Find more on SPGridview and picture library Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].