CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 4/2/2004 5:07:36 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 25 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
merkka
Asp.Net User
user control with editable datagrid ??4/2/2004 5:07:36 AM

0/0

Hello all,
I would like to create a user control with editable datagrid. Is it possible to handle events in parent page?
for example:

In my user control page (ascx) I have datagrid with parameter:
onUpdateCommand="DataGrid_Update"

Can I handle this in aspx page that is using this control or do I have handle that in
ascx-page?

master4eva
Asp.Net User
Re: user control with editable datagrid ??4/2/2004 8:44:15 AM

0/0

Just trying to probe your situation out - are you using code-behind for the user control?
-- Justin Lovell
merkka
Asp.Net User
Re: user control with editable datagrid ??4/7/2004 5:37:11 AM

0/0

No, I don't use code-behind.
I think I found a solution:
I can use RiseEvent method.
master4eva
Asp.Net User
Re: user control with editable datagrid ??4/7/2004 9:00:14 AM

0/0

Ok, what you have to do is create a new event in the user control like so:

public event DataGridCommandEventHandler UpdateCommand;

protected void OnUpdateCommand(object sender, DataGridCommandEventArgs e) {
if (UpdateCommand != null)
UpdateCommand(sender, e);
}

....

<asp:datagrid runat="server" OnUpdateCommand="OnUpdateCommand">
...
</asp:datagrid>

All you have to do on your page to recieve that event is like so:

<cc1:SomeUserControl runat="server" onUpdateCommand="someMethodToHandle" />

-- Justin Lovell
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Microsoft Visual C# .NET 2003 Developer's Cookbook: Developer's Cookbook Authors: Mark Schmidt, Simon Robinson, Pages: 787, Published: 2003
Applied ADO.NET: Building Data-Driven Solutions Authors: Mahesh Chand, David Talbot, Pages: 887, Published: 2003
ASP.NET Developer's JumpStart Authors: Paul D. Sheriff, Ken Getz, Pages: 648, Published: 2002
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005
Professional ASP.NET 1.1 Authors: Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson, Pages: 1337, Published: 2004
Simply Visual Basic 2008 Authors: P. J. Deitel, Deitel & Associates ,Inc. Staff, G J Ayer, Pages: 896, Published: 2008
ASP.Net Web Developer's Guide: Web Developer's Guide Authors: Robert Patton, Mesabāha Āhamada, Mesbah Ahmed, Jonothon Ortiz, Pages: 736, Published: 2002
Essential ADO.NET Authors: Bob Beauchemin, Pages: 521, Published: 2002
ASP.NET: Tips, Tutorials, and Code Authors: Scott Mitchell, Pages: 878, Published: 2002
Murach's VB.NET Database Programming with ADO.NET: Training & Reference Authors: Anne Prince, Doug Lowe, Pages: 585, Published: 2003

Web:
Creating a Drill Down DataGrid with User Controls The first point, that the Link Button is a "Edit Command" is important to this ... The User Control is again a simple DataGrid; you can accomplish the same ...
Can't get a reference to user control in datagrid Talk about Can't get a reference to user control in datagrid. ... clciks edit they get an editable version of my control which also work ...
Mindcracker - Error Display Submit Articles. Login. User Id:. Password:. Remember Me. Forgot Password ... ASP.NET 2.0 Controls · WebForms Controls ... Web Forms Controls ...
Creating an editable DataGrid control in Flex at Flex Examples When working with editable DataGrid controls, there are three events which can .... to let the user view more pages of records or jump to a specific page. ...
Add any user control to a DataGrid: ExtendedDataGridControlColumn ... The free ExtendedDataGrid provides a framework to easily add virtually any UserControl to a DataGrid cell! It comes down to creating a custom control by ...
ASP.NET.4GuysFromRolla.com: An Extensive Examination of the ... Dec 15, 2004 ... NET Web controls, the DataGrid. Specifically, this part of the article ... the task of creating a fully-editable DataGrid user interface. ...
How to reference a UserControl from a DataGrid [timstall ... Sometimes you need to have a UserControl in a DataGrid, and sometime you also need to reference that control to either get/set its values. In ASP.
ActiveWidgets • How to capture changes in editable cells? (v2 ... When the user double clicks a row in the main grid, the row selected ... editable datagrid sample · table editable cells select · control simple grid ...
ASP.NET Data Web Controls Kick Start - Companion Web Site Making Select Rows in an Editable DataGrid Uneditable ... AlternatingItem then If USER CANNOT EDIT THIS ROW then 'Hide the Edit column control e.Item. ...
AJAX DataGrid: An ASP.NET User Control NET User Control By Jibin Pan May 16, 2006. This DataGrid is a Client Side Control. .... The Datagrid with Page, Master-Detail and Edit function ...




Search This Site:










problem with forum 3.0.11: object reference not set to an object.

formsauthentication- asp.net 1.1 sp1

java and azman

i'm back with another question! asp:textbox and html?

sitemappath control and showstartingnode="false" behavior

url address as showing in internet explorer

a way to make the dnn login secure??????

new marquee with "on mouse over stop" module

user list / address book

user control gridview rowcommand not executing

post-publish events

locked myself out :^(

membership / role provider works locally, but not remotely

the html and javascript error of my website

easy ecommerce module

what is the official way to upgrade?

login control persistence problem

vertical menu dnn3.x css

configuration management block...

use sa or another account?

seeking for best windows hosting with sql server 2005

fee based child portal creation possible???

vwd 2008 and layout

from 2.0.3 to 2.1.2

restricting access to other file types.

update web pages without a refresh

problems using finishdestinationpageurl

3.x how to bind itemid to the editurl in moduleactions

godaddy pws admin logon password help sql

no ajax control toolkit website option

 
All Times Are GMT