Last post Jul 05, 2013 04:57 AM by Amy Peng - MSFT
Jul 02, 2013 02:44 AM|Silverlight.Shailendra|LINK
I have following tables :
AllSections : SectionId(PK), SectionName
AllDept : DeptId(PK), DeptName
PaperList : PaperId (PK), SectionId(FK), DeptId(FK), Date etc....
Here, User may select either Section or Dept. If user selects Section then Dept will have NULL value and if user selects Dept then SectionId will have NULL value.
I want to display the PaperId, SectionName DeptName Date on GridView
My requirement is If SectionId or DeptId has null then is it possible to display "NO DATA SELECTED" message on that column?
Jul 02, 2013 03:03 AM|oned_gk|LINK
<asp:BoundField NullDisplayText="NO DATA SELECTED" />
Jul 03, 2013 05:50 AM|Silverlight.Shailendra|LINK
Yet not get the reference where I can find the solution.
Jul 05, 2013 04:57 AM|Amy Peng - MSFT|LINK
Have you try to use the BoundField.NullDisplayText, it works well for me:
Or please try to refer to the following thread, it may give you some idea:
Hope it can help you.