473,756 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dataview inserting / viewing records

Hello,

I was wondering if there is a way to used a dataview like the following and
how to do it.

I have a new table, no records. I have a new asp.net 2.0 beta 2 webform,
with a
sqldatasource of that table with the insert update delete option selected.

I then put a dataview and attached it to that sqldatasource

now i call the page i get nothing on the page.

So set the parameter on the dataview default mode to insert

call the page and i get a form that i can insert the record..

what i need is after it inserts that record to requery and change the
defaultmode to readonly and show that record
Hope this makes sence, if it goes back to read only then i got past the
first inital record add for that table and then i can use and see the edit
new option that i checked when defaultmode = readonly

pulling my hair out, on something that is probally too easy for me to see
ugh...

Tdar
Nov 19 '05 #1
0 983

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

Similar topics

1
2701
by: codemonkey | last post by:
Thanks in advance to anyone who may be able to help me! I have a Subform control using the Dataview viewing method to display records. The problem is (and even though this seems tedious it is buggying me to death lol) when you use the vertical scrollbar to see the last field in the Subform, it allows you to continue to scroll past the last field in the Subform into a 'grey' area. I think being able to see the 'grey' area looks...
2
1499
by: vMike | last post by:
I have dataview which is stored in Cache for about 10 minutes. When a web user makes a selection the cached data is called from cache, sorted, filtered and bound to a datagrid. The cache is not re-saved. When the next user comes along if they have no querystring parameters, they are supposed to default back to the beginning of the data, but instead the data grid starts at the point the last user was viewing. The users are able to get back...
8
3897
by: Dave Hagerich | last post by:
I'm using a DataGrid with a DataSet and I'm trying to filter the data being displayed, using the following code as a test: DataView theView = new DataView(theDataSet.Tables); theView.RowFilter = "'Record ID' = '0'"; theView.RowStateFilter = DataViewRowState.ModifiedCurrent; Debug.WriteLine(string.Format("RowFilter = {0}", theView.RowFilter)); RecordDataGrid.DataSource = theView; RecordDataGrid.DataBind();
13
2115
by: Steve | last post by:
I have a form with a dataset and a datagrid. I created a dataview on this dataset. When the user modifies the datagrid, I look up this record in the dataview to make sure it is unique. Here is the confusion......... I thought that the DataView is the view from the dataset, but it seems that the dataview has the records that are in the datagrid, because everytime I search for a record that I know is NOT in the dataset, it finds it. I...
17
2769
by: A_PK | last post by:
I have problem databinding the DataGrid with DataView/DataSet after the filter... I create the following proceudre in order for user to filter as many as they want, but the following code is only allow user to filter the first time, when they tried the second time, the speficied cast error message will prompt one.... I create a mydataset1 first, and the mydataset1 data source was getting from DataGrid.DataSource.
1
1025
by: ReidarT | last post by:
I use a dataview to view records from an sql-database in a windows-form. When I use a select statement from a table like SELECT * FROM Table1 it works ok. objDataAdapter.Fill(objDataSet, "Table1") I fill the field in the form with txtFieldName.DataBindings.Add("Text", objDataView, "FieldName") When I change the select-statement to get fields from 2 or more tables like SELECT Table1.*, Table2.Field2, Table2.Field3 FROM Table1 LEFT OUTER...
3
1633
by: koredump | last post by:
Hi, I'm working on fixing a bug in a very data intensive windows application. The application has a datagrid that binds to a dataview. The dataview can hold as many as 40000 records that are retrieved from two tables with a join. The user filters the dataview to display a subset of the 40000 records. All data gets loaded on FormLoad(). From time to time the dataview ends up with zero records w/o any exceptions being thrown. If there...
4
1583
by: James | last post by:
Basically I have a DataGrid that I'm binding to the results of a stored procedure call. The recordset is fairly small. Initially I'm creating a DataSet from the results and binding it. There's a DropDownList on my page that filters the records that are displayed in the grid. How I'm currently handling this is when I initially bind, I create a DataView from the table in the dataset. When the DropDownList changes selection, I get the...
2
3096
by: AlexanderDeLarge | last post by:
Hi! I got a problem that's driving me crazy and I'm desperately in need of help. I'll explain my scenario: I'm doing a database driven site for a band, I got these tables for their discography section: Discography --------------------- DiscID
0
9431
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, 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...
0
9255
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,...
0
10014
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, 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...
0
9844
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 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...
1
9819
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,...
0
9689
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 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...
0
8688
agi2029
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...
0
5119
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...
0
5289
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.