Hi all,
I have my own collection own which implements ienumerable and ienumator.
I was recently using a GridView and I was prompted that I could not turn on
paging because the data source (my collection) was not data pageable. I
subsequently added a property to my collection to return the data as a
datatable and all was good, however, I would much prefer to not do this, and
keep the source as my collection.
Thus, is it possible to make my collection data pageable?
Any info would be appreciated.
Regards
Rob 1 1489
On 17 Aug, 09:19, "Rob Meade" <ku.shn.tsews.t ...@edaem.borwr ote:
Hi all,
I have my own collection own which implements ienumerable and ienumator.
I was recently using a GridView and I was prompted that I could not turn on
paging because the data source (my collection) was not data pageable. I
subsequently added a property to my collection to return the data as a
datatable and all was good, however, I would much prefer to not do this, and
keep the source as my collection.
Thus, is it possible to make my collection data pageable?
Any info would be appreciated.
Regards
Rob
Yes, there's a couple of ways you could do this. One way would be to
use the PagedDataSource class and return an instance of that from your
class. If you want to see how this class can be used by a control, you
can have a look at the example here: http://aspnetlibrary.com/articledeta...-to-a-repeater This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: David Lozzi |
last post by:
I am using an upload util and I was told I need this option,
enctype="multipart/form-data", in my FORM tag. How do I reference the other
form fields within the form from ASP?
THanks,
--
David Lozzi
Associated Business & Technology Group
www.associatedbtg.com
|
by: Steven K |
last post by:
Hello,
I am using an asp page (upload.asp) to gather information and to upload
files to the web server using SoftArtisans SAUpload Tool. In the first page
(upload.asp), I have a form for gathering info with the following:
<form method="POST" action="upload_ok.asp" name="frmUpload"
enctype="multipart/form-data">
<input type="hidden" name="cmdSearch" value="SearchValue">
<input type="hidden" name="cmdName" value="NameValue">
|
by: alederer |
last post by:
Hallo!
I have a table tstest(ts char(13) for bit data constraint a unique).
This column is filled in a trigger with generate_unique().
In a application (CLI), I have the values of this column as timestamp
representation: e.g.: select timestamp(ts) from tstest
1
|
by: Jerry |
last post by:
I have an off-the-shelf app that uses an Access database as its
backend. One of the tables contains a field with an "OLE Object"
datatype. I'm writing some reports against this database, and I
believe this field contains data I need. When I view the table in
datasheet view, all I can see in this field is the string "Long
binary data".
So, I've got the problem of needing to extract data from this
field, but I don't know what format...
|
by: Harrie Verveer |
last post by:
Hi,
I'm building quiet a large webapplication (CMS) in ASP.NET. On localhost
the application runs fine. For publishing we use 2 hosting providers at
the moment (let's call those 'A' and 'B'). Hosting provider A doesn't
give any problems and the application runs just fine. On hosting
provider B there are some problems, and I just can't figure it out =(.
My users login using FormsAuthentication. After clicking through the
application...
| |
by: Tea Maker |
last post by:
Hello,
I created a backup of sql server 2000 database and restored the database on the client's computer that has MSDE installed.
Now how can I make sure nobody will be able to mess with the database (the log and data files found in the c:/program files/Microsoft SQL Server/MSSQL/Data ).
What happens if someone deletes these files? Is there a way to encrypt them or make them invisible, or move them somewhere else?
Thanks
|
by: Sanders Kaufman |
last post by:
I'm converting my table-based layouts to css-positioned divs - but the
ONLY reason I'm doing it is because it's *considered* a best practice.
I don't really see where anything goes hinky when tables are used - but
I'm doing it anyway because the HTML and CSS specs says to reserve
tables for tabular data.
So as I convert my login widgit to a css thing, I'm saying to myself -
hey, this form is most certainly "tabular data" - even if it...
|
by: Rob |
last post by:
I've got quite an already complex form to which I need to add a upload photo
facility. I know how to do this but wondered if adding the form tag to
include enctype="multipart/form-data" makes a big performance difference to
the form when a photo isn't been uploaded?
Thanks, Rob.
|
by: BobRoyAce |
last post by:
I am using Visual Studio 2008 w/ VB.NET.
For the database, I am using SQL Server 2005, which is running on a
dedicated server box.
I am creating a WinForms application for a client. It is run on any of
several employees' desktop PCs.
Now, they want to be able to "push" some of the data from the SQL
Server database up to a database on a website (also SQL Server 2005).
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |