I have a dataset which is attached "Db Results.png" as below.
Based on the DB results, I'm able to pull the data into screen as "Grid Results as per the DB column names.png".
But my requirement is, If the user generate a report on Monday 09/17/2012, then he has to see the data for next five days with respective of specified dates.
If you see the image "Expected Final Grid Results Should looks as like this.png", in that grid, the results are with respective of each date. Please could you help my how I can Acheive it?
Please find the below code:
Code.ASPX:
<
div id="dvResult" style="min-width: 64%; width: 64%; height: 98%; float: right;">
<fieldset>
<legend>Result</legend>
<asp:UpdatePanel ID="updReportData" runat="server">
<ContentTemplate>
<asp:Label ID="lblMetricsInfo" runat="server"></asp:Label></Br>
<asp:Label ID="lblMetricsBusinessInfo" runat="server"></asp:Label>
<div style="text-align: right">
<asp:LinkButton ID="lnkShowAll" Text="Show All" ToolTip="Toggle grid paging" runat="server"
CommandName="CurrentGrid" CommandArgument="ReportData"></asp:LinkButton>
<asp:ImageButton ID="imgToExcel" runat="server" ImageUrl="../images/excel_16x16.png"
AlternateText="Export data to Excel" ToolTip="Export grid data to Excel." Style="width: 16px;
height: 16px; cursor: pointer;" CommandName="CurrentGrid" CommandArgument="ReportData" />
</div>
<div class="gridWrapper">
<telerik:RadGrid ID="grdReportData" runat="server" PageSize="20" AllowSorting="True"
AllowPaging="True" AutoGenerateColumns="True" ShowGroupPanel="True" CssClass="grid"
ClientSettings-Resizing-AllowColumnResize="true" ClientSettings-Resizing-ResizeGridOnColumnResize="true"
ShowFooter="true">
<PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
<GroupPanel Text="">
</GroupPanel>
<MasterTableView Width="100%" TableLayout="Fixed">
<NoRecordsTemplate>
No records exist for the given criteria.
</NoRecordsTemplate>
</MasterTableView>
<ClientSettings AllowGroupExpandCollapse="True" AllowDragToGroup="True">
<Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True"></Resizing>
</ClientSettings>
</telerik:RadGrid>
</div>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="imgToExcel" />
</Triggers>
</asp:UpdatePanel>
</fieldset>
</div>
Code.ASPX.vb File
Public sub LoadReport()
Dim Ds as dataset = nothing
Ds = Obj.GetDate()
grdReportData.DataSource = ds
grdReportData.DataBind()
End Sub
Thank You In Advance,
Satish.