Friday, June 17, 2022

Multiple data field in single Column Grid View ASP.NET C#

  <asp:TemplateField HeaderText="Exam Date Details" ItemStyle-Width="100">

                            <ItemTemplate>

                                <asp:Label ID="Scheduled_Exam_Date" runat="server" Text='<%# "<b>First:</b> " + "" + Eval("Scheduled_Exam_Date") %>' />

                                <br />

                                <asp:Label ID="SecondTimeAppearScheduledDate" runat="server" Text='<%# "<b>Second:</b> " + "" + Eval("SecondTimeAppearScheduledDate") %>' />

                                <br />

                                <asp:Label ID="ThirdTimeAppearScheduledDate" runat="server" Text='<%# "<b>Third:</b> " + "" + Eval("ThirdTimeAppearScheduledDate") %>' />

                            </ItemTemplate>

                            <ItemStyle Width="100" />

                        </asp:TemplateField>

No comments:

Post a Comment