6
10/28/2002 (c) 2002 Orbonyx Corp. Al l Rights Reserved. GotDotNet – Building Upon the Framework Roy Ogborn, Lead Consultant Orbonyx Corp. www.Orbonyx.com Downloads: www.Orbonyx.com E-mail: Roy @ Orbonyx.com

10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved. GotDotNet – Building Upon the Framework Roy Ogborn, Lead Consultant Orbonyx Corp

Embed Size (px)

Citation preview

Page 1: 10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved. GotDotNet – Building Upon the Framework Roy Ogborn, Lead Consultant Orbonyx Corp

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

Page 2: 10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved. GotDotNet – Building Upon the Framework Roy Ogborn, Lead Consultant Orbonyx Corp

10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved.

ASP.NETDataGrid Web Control

GotDotNet – Building Upon the Framework

Page 3: 10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved. GotDotNet – Building Upon the Framework Roy Ogborn, Lead Consultant Orbonyx Corp

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.

Page 4: 10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved. GotDotNet – Building Upon the Framework Roy Ogborn, Lead Consultant Orbonyx Corp

10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved.

WebForms DataGrid

To Visual Studio Example

Page 5: 10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved. GotDotNet – Building Upon the Framework Roy Ogborn, Lead Consultant Orbonyx Corp

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.

Page 6: 10/28/2002 (c) 2002 Orbonyx Corp. All Rights Reserved. GotDotNet – Building Upon the Framework Roy Ogborn, Lead Consultant Orbonyx Corp

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!