NullDisplayText as name implies,it display any text in the column,when that column has no record or null or empty records.If the record is Null or Empty,then in such case,we use NullDisplayText property to show user as any user defined text in columns.
We give this property in BoundField as shown below:-
<asp:BoundField HeaderText="LDAP" DataField = "ldap" NullDisplayText="Not Present" />
In above case if employee'LDAP is not found in DB or Null or Empty,then in that case it will show Not Present in Gridview.
Asked In: Many Interviews |