GridView

Simple-Talk.com Article

I noticed that a lot of people had asked me about the same topic over and over again. I know this will continue to be the case so I decided to write an article on it. Today it got published on Simple-Talk.com. The article is titled "Take Row-Level Control of Your GridView" and it talks about manipulating the gridview to render it to your needs. I let you read it for yourself. Happy Programming!

posted @ Friday, September 28, 2007 12:24 PM | Feedback (1)

More Control Over GridView Column

In response to the many comments/questions regarding the post on GridView, HyperLinkField, and JavaScript what the #%$@! I decided to extend it and show how you can have total control over a column with the GridView.Whenever you need to do something that is not out of the box with the GridView, like adding RadioButtons, Adding JavaScript, etc you can use the <asp:TemplateField> In there you have total control as far as what you want to insert on that column. Following the issue with the JavaScript from my other post there is an example on how to do achieve the same...

posted @ Friday, October 06, 2006 2:36 AM | Feedback (15)

Updated Rows in a GridView

Have you ever wondered how to show the updated rows of a grid view? Well, I did, and I had to implement it for a client. Here's the basic idea. We need some kind of collection that holds the index of all the rows that had been modified. We need to persist the collection through every postback and then iterate through all the members of the collection and change the background color of the rows with the index specified in the collection.All you need is to set up a gridview in your aspx page and have the folowing code (this...

posted @ Tuesday, May 16, 2006 2:27 AM | Feedback (0)

GridView, HyperLinkField, and JavaScript what the #%$@!

When you always think something is going to go very smooth you know there will be something to make it rough. Of course I'm talking about code. As the title might have given it away, I'm talking about the GridView. To be more specific: a GridView with a HyperLinkField and JavaScript.In 2005, a HyperlinkField cannot have javascript. For some reason if you do something like this:<asp:HyperLinkField HeaderText="PLAN IMG" DataTextField="PLAN_IMG" Text="{0}" SortExpression="PLAN_IMG" DataNavigateUrlFields="PLAN_IMG" DataNavigateUrlFormatString="javascript:MM_openBrWindow('../images/elevations/{0}','img','');"/>The grid will be rendered without a hyperlink. How to solve this problem, you may ask. After reading this blog I came up with a solution. Use a...

posted @ Friday, April 07, 2006 2:17 AM | Feedback (22)