Posts Tagged ‘gridview’

Sharing ObjectDataSource From Codebehind

A04C0035

I ran into an interesting “problem” last week that wasn’t all that hard to figure out once I broke out the debugger.  But I thought it would be useful to share the results to save others the time.

The situation was that I had an Object Data Source in a FormView that I wanted to share with both a DataGrid in the FormView and a DataRepeater outside of the FormView.  Since it was in the FormView, the DataRepeater couldn’t see it.

So it seemed reasonable to me that if I could just trap the right event in the FormView I could assign the DataSource of the GridView to the DataSource of the Repeater, rebind the Repeater and we’d be on our way.

It wasn’t quite that simple.

Read the rest of this entry »

Other Related Items:

Using and Accessing Server Controls Embedded in Iterative Databound ControlsUsing and Accessing Server Controls Embedded in Iterative Databound Controls

In this article, author Rick Leinecker shows you how to get more functionality from iterative databound controls such as Repeaters, DataLists, and ... Read More >

If you're new here, you may want to subscribe to the mailing list to get notifications of new post and a virtual tour of past topics. Thanks for visiting!

GridView and Updating A Row Manually

G07L0095

A couple of days ago I mentioned a project that I’ve been working on that is a bit out of the ordinary as far as GridViews go.  One of the issues I’ve had is that the edit template doesn’t map to the view template very well.

OK, it doesn’t map at all.

You see, the data that gets stored back to the database during the edit could go to two of four different tables.  But the view is generated from a stored procedure that gathers the information from those tables and makes the result look like it came from one table.

So how do you have the GridView update the database under these conditions?

Read the rest of this entry »

Other Related Items:

Cables Unlimited 6-Feet 9-Pin to 6-Pin IEEE 1394B Bilingual Firewire 800 Cable (MSC512006)Cables Unlimited 6-Feet 9-Pin to 6-Pin IEEE 1394B Bilingual Firewire 800 Cable (MSC512006)Connect the latest generation of high-speed FireWire 800 devices with the high-speed cables. These 9pin cables can easily handle data transfer rates up to 800MBps, twice the data throughput of the original IEEE1394 standard, making them the perfect solution for all your FireWire connectivity needs.
Beginner's ASP.NET in C# 2003 on DVDBeginner's ASP.NET in C# 2003 on DVDASP.NET 2003 represents an important technology for building enterprise level web applications. Learn the basics of ASP.NET development as you watch a... Read More >

GridViews – Multiple Rows Per Record

G04B0069 I don’t know about you, but I’ve had several occasions where I’ve needed to use the simplicity of the GridView control in ASP.NET.  DataBinding, Paging, Sorting, etc.  But I’ve also wanted to stack the information for a record in multiple rows.

Most of the time this happens when I need to display data that would take up two or three times as much of the width as my layout will allow.

The solution to this problem is quite simple: Use templated columns and Literal controls.

Read the rest of this entry »

Other Related Items:

ASP.Net Essential TrainingASP.Net Essential TrainingThousands of businesses have used ASP.NET to build
Don't Mess With Me... Programmer on Women's Cotton T-Shirt (in 22 colors)Don't Mess With Me... Programmer on Women's Cotton T-Shirt (in 22 colors)100% preshrunk heavyweight cotton; double-needle stitching throughout; seamless rib at neck; shoulder-to-shoulder tape; heather grey is 90% cotton, 10% polyester; fashion cut; 5/8" rib collar; fitted tapered sleeve.

Conditional Footnotes On GridView

hand-079 A couple of days ago I ran into a requirement to conditionally display footnote information at the bottom of a GridView display.  We were already conditionally displaying icons in the row.  What we needed to do was to conditionally show text at the bottom of the screen that explained what each icon was for.  Here’s how we went about it.

Read the rest of this entry »

Other Related Items:

IR Repeater System - Hidden IR Control SystemIR Repeater System - Hidden IR Control SystemThis Advanced IR Repeater System is Easy to Install - 1. Place the Receiver in your desired location. You can attach it to the location with the incl... Read More >
Cables To Go - 40430 - Remote Control Repeater KitCables To Go - 40430 - Remote Control Repeater KitDoes your entertainment system have wooden doors or would you like to mount your components in a closet? Without a clear line of sight infrared (IR) s... Read More >

Editing in a GridView without switching to Edit mode.

I just saw a question about this yesterday and realized that while I know how to do this, not everyone does.  So, here we go…

Here’s the problem.  You want to be able to edit all of the rows in the gridview at once instead of having to switch to edit mode and save one row at the time.  Normally, you’d want to do this when only a couple of items need to be changed per row and not the entire row’s worth of data.

Read the rest of this entry »

Other Related Items:

Beginner's ASP.NET in VB.NET 2003 on DVDBeginner's ASP.NET in VB.NET 2003 on DVDASP.NET (VB.NET) 2003 represents an important technology for building enterprise level web applications. Learn the basics of ASP.NET development as yo... Read More >
Encyclopedia of Counseling, Third Edition: Master Review and Tutorial for the National Counselor Examination, State Counseling Exams, and the Counselor Preparation Comprehensive ExaminationEncyclopedia of Counseling, Third Edition: Master Review and Tutorial for the National Counselor Examination, State Counseling Exams, and the Counselor Preparation Comprehensive Examination

In the third edition of Howard Rosenthal’s best-selling test preparation guide for the National Counselor Examination (NCE), students get more... Read More >

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor