473,396 Members | 1,938 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,396 software developers and data experts.

VS2005 GridView

I seem to have a problem using VS2005 GridView. When I tried to implement
RowUpdating or RowUpdated handlers NewValues, OldValues, and AllKeys
collecitons are empty. Also, when I tried to implement RowDeleting, Values
collection is empty. I load my grid by executing my stored procedure that
returns DataSet.

grid.DataSource = GetMyItems();
grid.BindData();

Does anyone have an example of working with GridView?

Thanks,
Nov 19 '05 #1
3 2392
Hi,

I've exactly the same problem. Haven't figured it out yet, did you
discover anything ?

Thanks,

Filip

Amelyan schreef:
I seem to have a problem using VS2005 GridView. When I tried to implement
RowUpdating or RowUpdated handlers NewValues, OldValues, and AllKeys
collecitons are empty. Also, when I tried to implement RowDeleting, Values
collection is empty. I load my grid by executing my stored procedure that
returns DataSet.

grid.DataSource = GetMyItems();
grid.BindData();

Does anyone have an example of working with GridView?

Thanks,


Nov 19 '05 #2
Look at this sample code
http://www.microsoft.com/indonesia/m...ibStrtKit.aspx
"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:eC**************@TK2MSFTNGP10.phx.gbl...
I seem to have a problem using VS2005 GridView. When I tried to implement
RowUpdating or RowUpdated handlers NewValues, OldValues, and AllKeys
collecitons are empty. Also, when I tried to implement RowDeleting, Values
collection is empty. I load my grid by executing my stored procedure that
returns DataSet.

grid.DataSource = GetMyItems();
grid.BindData();

Does anyone have an example of working with GridView?

Thanks,

Nov 19 '05 #3
Guys, those colloctions only work when you use the datasource controls, or
the objectdatasource. You are binding a custom object?

"Angelo Cook" <an*********@hotmail.com> wrote in message
news:em**************@TK2MSFTNGP14.phx.gbl...
Look at this sample code
http://www.microsoft.com/indonesia/m...ibStrtKit.aspx
"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:eC**************@TK2MSFTNGP10.phx.gbl...
I seem to have a problem using VS2005 GridView. When I tried to implement
RowUpdating or RowUpdated handlers NewValues, OldValues, and AllKeys
collecitons are empty. Also, when I tried to implement RowDeleting,
Values collection is empty. I load my grid by executing my stored
procedure that returns DataSet.

grid.DataSource = GetMyItems();
grid.BindData();

Does anyone have an example of working with GridView?

Thanks,


Nov 19 '05 #4

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

Similar topics

3
by: John | last post by:
Hi all, I posted a question earlier regarding C# and accessing an objects events from within the IDE: Say a gridview is dropped onto a page: If the page is VB, I can go to the code-behind and...
4
by: paul | last post by:
Hi, Im trying to add a dataset to the app_code directory using vs2005 \ SQL2005 beta 2. When I run through the wizard I select the option to auto create new Stored Procedures (Select, update,...
0
by: Faybert | last post by:
Hello, and Thanks in advance for any light you might shed on my troubles. I'm trying to setup a series of checkboxes, or a checkboxlist to control the results that are shown on a gridview...
9
by: T. Wong | last post by:
If I create a datasource after dragging a GridView onto an aspx page it puts my sql in the .aspx file. SQL in the aspx file is just wrong - it's like going back to asp where we had code and sql in...
10
by: GaryDean | last post by:
A couple of weeks ago I reported a bug in vs2005 where it corrupted projects converted from vs2003 if a 2003 dataset were modified or recreated. Steven Cheng was able to recreate the bug. I ...
2
by: Bob | last post by:
I have noticed that as one adds related tables to a bindingsource and dataset(vs2005 Vb.Net Sql Server 2005), the TODO and following code that fills the datasets on form load are written to the...
9
by: Larry Charlton | last post by:
I've begun trying to create some basic applications and controls and am left wondering if Microsoft rushed this to market, is just anti-web standards, or just wants it to be hard to create great...
1
by: Martin Robins | last post by:
I have created an inherited control based upon the GridView control, however when I use this control within the VS2005 ASP.net form designer I can no longer access the intellisense for the base...
0
by: Marek | last post by:
Hi all, I have GridView control placed on given page. This control has DataSource attached to it with select and update commands. One column is teplate field (DropDownList control). This control...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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...
0
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,...

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.