473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Object Data Source and Custom Business Object

Dear All,

I am using issue tracker architecture and developed business object for my
application. Now, in VS Beta 2, I humbly want to know how i can have same
feature as dataset, in my business object, what i mean is, if you have
dataset object and assign it to gridview, you can add/edit/delete row
(without affecting table) and then post it back to database. Same thing i
want to have for my business object (which is generic collection) assign to
gridview. So when I add records to my collection it should adds to
mycollection, on delete it should deletes from the collection and on update
it should updates my collection, then on final submit i loop through my
collection and do neccessary updates to my database (like a batch mode).

Why i need it:-
A) I have a child table which gets primary key from the Main table. So, if
my gridview source is Business Object collection, i can save the record in
main table (which is also a custom BO), get the primary key and save the
child table records accordingly.
B) Gridview does not allow insert and Gridview/Detailview will not show
ANYTHING if there is no data and not allow you even to insert. /**** Without
insert how you will get data and without data you cannot insert (What
Microsoft ASP.NET guru want to achieve with this merry-go-round i dont know)
****/.
C) By using custom collection I can add a empty object, so it show me dummy
record in Detailview with default values. Now user can atleast edit it, and
if they have more records they can carry on with insert.

Question:-

1) How in my business object class I will have access to the instance of
Collection class (created on webpage) to manuplate it?

NOTE:
my requirement is to update the data in collection only, WITHOUT affecting
the database. Let say user adds/edits/delete any of records in gridview, it
should only affect the Business Object (Generic Collection), after on final
submit i will update it to the database.

Thanks & any help would be highly appreciated.

Khuzema
www.wisdom.com.kw

Nov 19 '05 #1
0 1662

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: R | last post by:
Hello everybody. I'm writing my own Content System in PHP5. I've written so far main classes for handling DB connections, XML, XForms and Sessions. But I've got problem with one thing - it's...
16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
6
by: Graham Pengelly | last post by:
Hi I'll try to spell out my problem as succinctly as possible... My database has a User table, an Organisation table, a Department table and a JobType table (amongst others) The...
3
by: moondaddy | last post by:
I'm wanting to create a bindable list object made up of a list of business classes. I'm writing this in a vb.net 1.1 winforms app and am using a code example by Rocky Lhotka for reference...
3
by: Mark | last post by:
I'm consuming a webservice that makes a simple object available. The object class is marked in the web service as . I have a web application that consumes and uses this web service's class. When...
1
by: =?Utf-8?B?UGF1bCBT?= | last post by:
Hi I have created a collection of business objects in a seperate dll, which I have then added to my web project. However it does not show up in list of Website Data Sources. I need to Data...
1
by: markla | last post by:
Hi, I have an Entity data model built in Entity Framework, which sources data primarily from an MS SQL 2008 database, and sources some static (data dictionary) values from code-based objects. I...
45
by: =?Utf-8?B?QmV0aA==?= | last post by:
Hello. I'm trying to find another way to share an instance of an object with other classes. I started by passing the instance to the other class's constructor, like this: Friend Class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.