I was trying to use a DataList control bound to a business object using an
ObjectDataSourc e object. But the update event on the ObjectDataSourc e was
never being triggered. I tried using the same object with a GridView and a
DetailsView - just for testing - and they seem to work just fine. is there
something different about the way a DataList functions? Why wouldn't it
trigger the same event on an update? Thanks.
Jerry 5 2849
And here's something else that's a bit of a pain. It seems that if I don't
display the record ID in the gridview, when the update is called, the value
comes back as 0, so I have no idea what record to update.
I don't want to display the record identity value... How can I force the
GridView to keep track of which record without actually displaying the
identity column? (I already tried adding it to the columns collection but
making it invisible... Stills ends up with a zero value...
Thanks.
Jerry
<rl*****@newsgr oups.nospam> wrote in message
news:OL******** ******@tk2msftn gp13.phx.gbl... I was trying to use a DataList control bound to a business object using an ObjectDataSour ce object. But the update event on the ObjectDataSourc e was never being triggered. I tried using the same object with a GridView and a DetailsView - just for testing - and they seem to work just fine. is there something different about the way a DataList functions? Why wouldn't it trigger the same event on an update? Thanks.
Jerry
Alright... I just figured out to make the column width 0px... Seems kinda
clunky, but it works.
<rl*****@newsgr oups.nospam> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . And here's something else that's a bit of a pain. It seems that if I don't display the record ID in the gridview, when the update is called, the value comes back as 0, so I have no idea what record to update.
I don't want to display the record identity value... How can I force the GridView to keep track of which record without actually displaying the identity column? (I already tried adding it to the columns collection but making it invisible... Stills ends up with a zero value...
Thanks.
Jerry
<rl*****@newsgr oups.nospam> wrote in message news:OL******** ******@tk2msftn gp13.phx.gbl...I was trying to use a DataList control bound to a business object using an ObjectDataSou rce object. But the update event on the ObjectDataSourc e was never being triggered. I tried using the same object with a GridView and a DetailsView - just for testing - and they seem to work just fine. is there something different about the way a DataList functions? Why wouldn't it trigger the same event on an update? Thanks.
Jerry
This could really make a person crazy... (Not that I have far to go...)
I had set the column width to 0px and it was working just fine... Now I
deleted some other elements from the page and the identity column is back...
Even though the width is still set to 0px.
How can I make this thing go away. I need to have it in the collection
because I need to be able to reference it when interacting with the DB, but
the user has no need of the identity value and users are easily confused.
(Apparently, so am I...)
Help?
Thanks.
Jerry
<rl*****@newsgr oups.nospam> wrote in message
news:un******** *****@TK2MSFTNG P14.phx.gbl... Alright... I just figured out to make the column width 0px... Seems kinda clunky, but it works.
<rl*****@newsgr oups.nospam> wrote in message news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . And here's something else that's a bit of a pain. It seems that if I don't display the record ID in the gridview, when the update is called, the value comes back as 0, so I have no idea what record to update.
I don't want to display the record identity value... How can I force the GridView to keep track of which record without actually displaying the identity column? (I already tried adding it to the columns collection but making it invisible... Stills ends up with a zero value...
Thanks.
Jerry
<rl*****@newsgr oups.nospam> wrote in message news:OL******** ******@tk2msftn gp13.phx.gbl...I was trying to use a DataList control bound to a business object using an ObjectDataSourc e object. But the update event on the ObjectDataSourc e was never being triggered. I tried using the same object with a GridView and a DetailsView - just for testing - and they seem to work just fine. is there something different about the way a DataList functions? Why wouldn't it trigger the same event on an update? Thanks.
Jerry
DataKeyNames... That's the ticket.
I feel like I'm having a conversation with myself, here...
<rl*****@newsgr oups.nospam> wrote in message
news:un******** ******@TK2MSFTN GP11.phx.gbl... This could really make a person crazy... (Not that I have far to go...)
I had set the column width to 0px and it was working just fine... Now I deleted some other elements from the page and the identity column is back... Even though the width is still set to 0px.
How can I make this thing go away. I need to have it in the collection because I need to be able to reference it when interacting with the DB, but the user has no need of the identity value and users are easily confused. (Apparently, so am I...)
Help?
Thanks.
Jerry
<rl*****@newsgr oups.nospam> wrote in message news:un******** *****@TK2MSFTNG P14.phx.gbl... Alright... I just figured out to make the column width 0px... Seems kinda clunky, but it works.
<rl*****@newsgr oups.nospam> wrote in message news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . And here's something else that's a bit of a pain. It seems that if I don't display the record ID in the gridview, when the update is called, the value comes back as 0, so I have no idea what record to update.
I don't want to display the record identity value... How can I force the GridView to keep track of which record without actually displaying the identity column? (I already tried adding it to the columns collection but making it invisible... Stills ends up with a zero value...
Thanks.
Jerry
<rl*****@newsgr oups.nospam> wrote in message news:OL******** ******@tk2msftn gp13.phx.gbl... I was trying to use a DataList control bound to a business object using an ObjectDataSourc e object. But the update event on the ObjectDataS ource was never being triggered. I tried using the same object with a GridView and a DetailsView - just for testing - and they seem to work just fine. is there something different about the way a DataList functions? Why wouldn't it trigger the same event on an update? Thanks.
Jerry
Ha Ha, I was just thinking that when I saw all the posts !
;-)
Glad you sorted it out in the end, its so much more rewarding you cure your
own bugs.!
--
Terry Burns http://TrainingOn.net
<rl*****@newsgr oups.nospam> wrote in message
news:eF******** ******@TK2MSFTN GP14.phx.gbl... DataKeyNames... That's the ticket.
I feel like I'm having a conversation with myself, here...
<rl*****@newsgr oups.nospam> wrote in message news:un******** ******@TK2MSFTN GP11.phx.gbl... This could really make a person crazy... (Not that I have far to go...)
I had set the column width to 0px and it was working just fine... Now I deleted some other elements from the page and the identity column is back... Even though the width is still set to 0px.
How can I make this thing go away. I need to have it in the collection because I need to be able to reference it when interacting with the DB, but the user has no need of the identity value and users are easily confused. (Apparently, so am I...)
Help?
Thanks.
Jerry
<rl*****@newsgr oups.nospam> wrote in message news:un******** *****@TK2MSFTNG P14.phx.gbl... Alright... I just figured out to make the column width 0px... Seems kinda clunky, but it works.
<rl*****@newsgr oups.nospam> wrote in message news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . And here's something else that's a bit of a pain. It seems that if I don't display the record ID in the gridview, when the update is called, the value comes back as 0, so I have no idea what record to update.
I don't want to display the record identity value... How can I force the GridView to keep track of which record without actually displaying the identity column? (I already tried adding it to the columns collection but making it invisible... Stills ends up with a zero value...
Thanks.
Jerry
<rl*****@newsgr oups.nospam> wrote in message news:OL******** ******@tk2msftn gp13.phx.gbl... >I was trying to use a DataList control bound to a business object using >an ObjectDataSourc e object. But the update event on the >ObjectData Source was never being triggered. I tried using the same >object with a GridView and a DetailsView - just for testing - and they >seem to work just fine. is there something different about the way a >DataList functions? Why wouldn't it trigger the same event on an >update? Thanks. > > Jerry >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: s.gregory |
last post by:
My page layout is like this:
Page
>DataList (databound using ObjectDataSource1 contained in page)
>>Items
>>>UserControl
>>>>GridView (databound using another ObjectDataSource2 contained in UserControl)
So I've basically got a GridView (wrapped in a UserControl), that is
nested within a DataList. Representing a fairly simple relational data
|
by: staeri |
last post by:
I have one datalist containg another datalist in the ItemTemplate. I
used to have a gridview inside the datalist instead but I'm trying to
change that to another datalist but the code for binding the inner
datalist doesn't work:
Protected Sub DataList1_ItemDataBound(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.DataListItemEventArgs)
Dim s As SqlDataSource = e.Item.FindControl("SqlDataSource2")...
|
by: H5N1 |
last post by:
Hi there
My problem is that in when I update GridView row, which is nested into
DataList control, I want to refresh also DataList in which the GridView
is nested, since after update, trigger in my DB changes some value in
it (some Total sum from the GridView column).
The GridView, along with its ObjectDataSource is inserted into DataList
ItemTemplate.
|
by: H5N1 |
last post by:
Hello everybody
I'm stuck for a long time with the following problem, so I will be
really gratefull if you could help me a bit:
I have a GridView nested in DataList (it's located in DataList's Item
Template together with it's data source).
In OnRowUpdated event of child GridView I'm calling DataBind() on
parent DataList, since I want it to reflect the changes (maybe there's
|
by: Chris |
last post by:
I want to use the datalist to show a formatted data. I can use the item
template to have an image to the left a bit of text to right etc. I would
like the ability to add paging. This only seems available in the gridview.
Is there any way to add an item template to the gridview? In Visual Studio
Express there only seems to be pager template.
| |
by: ammar_fake |
last post by:
Hello there.
I need a DataList to render the Gridview by providing one of the
DataList values as a query for the underlaying Gridview.
This does not work:
SelectCommand="select * from projects where emp_id = <%# Eval("EMP_ID")
%>"
|
by: HP |
last post by:
Hi there
I have a datalist control with some bound controls in its Item Template
and a gridview bound to one of those fields (residing also in Item
Template).
I've found out that when I click Edit on the gridview (same happens
when editing other gridview which is outside the datalist) all datalist
bound fields (except the gridview) disappear, and they don't appear
after submitting GV changes - they do only after changing value of some
|
by: =?Utf-8?B?cGF0cmlja2RyZA==?= |
last post by:
Hi all!
I have a gridview inside a datagrid (nested) for which (gridview) the
rowcommand is not raised in order to delete a row from the grid!
I also tried OnRowCommand="method", didn't work either!
Does anyone know how can I make this work?
Thanks in advance!
|
by: Randy |
last post by:
In VS 2005, in the Windows Controls, you have the DataGridView (which has
scrollbars).
In the WebControls, is the GridView or the DataList synonymous with the
DataGridView?
Can you have scrollbars for the GridView or DataList?
Thanks
|
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: 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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |