Upload
caren-lang
View
213
Download
0
Embed Size (px)
Citation preview
10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved.
GotDotNet – Building Upon the Framework
Roy Ogborn, Lead ConsultantOrbonyx Corp.
www.Orbonyx.comDownloads: www.Orbonyx.com
E-mail: Roy @ Orbonyx.com
10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved.
ASP.NETDataGrid Web Control
GotDotNet – Building Upon the Framework
10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved.
At the end of episode 13, you will …
• Know how to create and fill a WebForms DataGrid on the fly.
• How to capture events from a dynamic DataGrid when ViewState is OFF.
10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved.
WebForms DataGrid
To Visual Studio Example
10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved.
Summary
• Create your own “Template Factory” class.• This class requires the
System.Web.UI.ITemplate interface.• To display a dynamic grid with no data,
simply bind it to an empty IEnumerable or Collection class.
• The DataGrid can only respond to user events when it is bound … to something.
10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved.
Roy Ogborn, Lead ConsultantOrbonyx Corp.
www.Orbonyx.comDownloads: www.Orbonyx.com
E-mail: Roy @ Orbonyx.com
Thanks!