Hi. I am making an application using the Compact Framework for a PPC.
Essentially what I am trying to do is, read a table from a external
datasource, and try to display it using the datagrid. For my purposes, I
can't use DataTable and DataSet, etc. etc. ie. So I am implementing
iTypedList. To put it simply, I need to override the 'Count' property such
that the datagrid will know the exact number of elements in my external
datasource, but only retrieve the rows on a needed basis (instead of loading
the complete table consisting of 1000's of rows into memory using a
DataTable/DataSet). Sadly, I can't just extend DataTable since the methods I
need to override are not virtual/override.
Now the problem occurs when I am implementing the GetItemProperti es() method
in iTypedList. Typically, you would just retrieve all the necessary
properties from the "Row" object and create the the
PropertyDescrip torCollection object. Now my problem is, until I read the
table from the external data source, I don't know what the "Row" objects
properties should be (ie. I don't know the schema of the row object until
run-time). I was trying to figure out how DataRow/DataTable did this, but
had no luck.
DataRow seems to have an 'Object [] ItemArray' property which looks
promising. Sadly, I couldn't figure out how to create the
PropertyDescrpt orCollection using an Array object. If I could figure this
out, all I need is one array object, and my schema/data values will be
contained within this array. Then within the GetItemProperti es() method I
can generate the proper descriptors. The other option would be to I guess
generate a custom "Row" object with the correct schema during runtime. But
since the PropertyBuilder class is not supported under the Compact
Framework, I don't think that's feasible - or memory efficient for that
matter..
If anyone has any suggestions, that would be great!. Thanks in advance.
Chankama 0 2393 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Alx Sharp |
last post by:
Hello group!
I got a little question for you all...
I've created two classes (FirstCollection and SecondCollection) that implements some interfaces: IBindingList, IList, ICollection, IEnumerable and ITypedList.
In my FirstCollection class, the method ITypedList.GetItemProperties(..) returns a PropertyDescriptorCollection object, so I've created a class MyFirstItemPropertyDescriptor that derives from PropertyDescriptor.
I'll show you a...
|
by: Joe Jax |
last post by:
I'm building my own version of a readonly DataTable, which needs to bind to
various controls. My data table class has two main collections
(CollectionBase instances): one of columns, one of rows, where each row has
a collection of column values. I have implemented the ITypedList interface
on my rows collection, but when I bind the collection to a grid (asp.net
datagrid) it tells me that the specified properties don't exist. There is no...
|
by: Venus |
last post by:
Hello,
I am trying to generate a dynamic form at runtime and would like to do it
using "<asp: ..." form elements as follows
Build up the string that is placed somewhere in the HTML code the same way
like regular input fields can.
strForm = "<form name=""myForm"" runat=""server"">" & vbCrLf
strForm += "<asp:button name=""myName"" .... runat=""server"" />" & vbCrLf
|
by: RichardG |
last post by:
I have an object data class that Inherits from a java class and implements
System.Runtime.Serialization.ISerializable as I only need to transfer across
three properties, string, array of objects and another class OID, which
returns an integer.
I'm passing over the object data class to the web server, step through to
the client side proxy and get the following error, which I assume is a
problem before it even hits the web service...
|
by: cwertman |
last post by:
I have a question regarding dynamic properties.
I have an Object say
Account
--Id
--Prefix
--Fname
--Lname
--Suffix
| |
by: Norbert Ruessmann |
last post by:
Hello group,
I have a problem with ObjectDataSource and ITypedList.
At the end of this entry you find the implementatiopn of my List class,
derived from ArrayList and implementing ITypedList. All items contained in
the list are of type Person, which is a class derived from nothing and
implementing no Interfaces.
I put a DataSourceObject on my form and a Gridview. The DataSourceObject's
select method is GetAllPersons.
|
by: Ronald S. Cook |
last post by:
In a .NET Windows app, if I set somehting like the title of the form to
"MyApp" at run-time, will that make the app run slightly slower than if I
had set the title at design-time?
Thanks,
Ron
|
by: segecko |
last post by:
Hi
I have a created a custom usercontrol which inherites an Excel like
usercontrol. In this usercontrol I have a custom property called
SpreadTemplate, which is an enum with (at the moment) two members
called None and Pipeline.
When I set this property at design time it sets up the activesheet with
a number of columns, rows, headers etc. This is all fine and working as
it is supposed to. The problem is that all this information gets
|
by: Norman Diamond |
last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet
Framework 2. Options are set in the setup project properties, so if these
two dependencies are not already installed then this installer will install
them.
But what about the situation where VC runtime has already been installed?
In fact it's been installed twice. Although the project was built on a
Windows XP system with Visual Studio 2005 SP1 and the results were...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |