Tag Archives: GridView



Fav 3 : Three Favorite .NET Tips and Tricks from Daily .NET Tips – Series 2

#1 : How to pass multiple values using GridView HyperLinkField ? While working with GridView in ASP.NET, most of the time we used HyperlinkField column to navigate from one page to different page with some value as argument. This tip explained how can we pass multiple parameter with HyperLinkField in GridView. #2 :  Displaying Custom […]

Conditional Binding Expression with ASP.NET GridView

ASP.NET GridView provides the flexibility to use  conditional binding expression where we can use some condition with bind expression. Depends on the evaluation value of the expression, ASP.NET GridView will render the content on page. In this tip I am going to explain one such scenario where the actual data source containing some status value […]

How to change GridView column alignments for dynamic data source ?

By default ASP.NET GridView Columns has left alignment text. We can use GridView ItemStyle property with either of GridView BondField or Template Field to change the default alignments.GridView properties,ItemStyle-HorizontalAlign having few set of values, using  which we can change the alignments. Above customization is true when you are using Bound Field or Template Field for […]

How to pass multiple values using GridView HyperLinkField ?

While working with GridView in ASP.NET, most of the time we used HyperlinkField column to navigate from one page to different page with some value as argument. In this blog post I have explained how can we pass multiple parameter with HyperLinkField in GridView. To implement this features you need to know about DataNavigationUrlField and […]

Displaying Custom Messages / Images with NULL Value in ASP.NET GridView

When we  bind some data source with GridView which contains some fields with NULL value,  ASP.NET renders them as Blank. Sometimes developers use GridView_RowDataBound() to override the NULL value with proper message. But Instead of overriding the value, we can use NullDisplayText to display proper message when the value for that particular field is NULL […]