Displaying Custom Messages Images with NULL Value in ASP.NET GridView
Displaying Custom Messages / Images with NULL Value in ASP.NET GridView
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
.Once we mentioned
NullDisplayText=”No Data”
for every field for that Bound Filed which having NULL
value will be replace by “No Data”Even we can customize the Text with
HTML
Formatting as shown in below.One more interesting point is, we can also display
Images
for NULL
Value Sagar S Bhanushali
Comments
Post a Comment