Page view counter

DataGrid in iewc:tabstrip

Last post 09-08-2008 1:33 PM by BrigideW. 0 replies.

Sort Posts:

  • DataGrid in iewc:tabstrip

    09-08-2008, 1:33 PM
    • Loading...
    • BrigideW
    • Joined on 11-12-2007, 7:15 PM
    • Posts 136

    Hi everyone,

    Could you help with this issue?

    I implemented the TabStrip with Datagrid as follow:

    ------------------

     

    <iewc:tabstrip id="TabDriver" runat="server" BorderColor="#000099" BorderStyle="None" BorderWidth="1px"
                  height="26px" TargetID="mpagedriver" SepDefaultStyle="border-bottom:solid 1px #000099;background-color:white;"
                  TabDefaultStyle="background:lightsteelblue;border-bottom:none;font-family:Arial;font-weight:bold;font-size:x-small;color:black;width:110px;height:20px;text-align:left;border:Solid 1px #000099;padding-left:5px;padding-right:5px;"
                  TabHoverStyle="background-color:steelblue;color:gold;" TabSelectedStyle="border:solid 1px #000099;border-bottom:none;background:white;padding-left:1px;padding-right:1px;color:red;">
                  <iewc:Tab Text="Doctor" TargetID="mydispatch"></iewc:Tab>
                  <iewc:TabSeparator></iewc:TabSeparator>
                  <iewc:Tab Text="Nurse" TargetID="driversalary"></iewc:Tab>
                  <iewc:TabSeparator></iewc:TabSeparator>
                  <iewc:Tab Text="Other Expense" TargetID="driverothers"></iewc:Tab>
                  <iewc:TabSeparator DefaultStyle="width:380px;"></iewc:TabSeparator>
                 </iewc:tabstrip>
                 <iewc:multipage id="mpagedriver" style="BORDER-RIGHT: #000099 2px solid; PADDING-RIGHT: 1px; BORDER-TOP: medium none; PADDING-LEFT: 1px; PADDING-BOTTOM: 2px; BORDER-LEFT: #000099 2px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #000099 2px solid"
                  runat="server" Height="229px" BorderStyle="Solid" BorderWidth="1px" Width="520px">
                  <iewc:pageview id="mydispatch">
                   <asp:DataGrid id="dataGrid1" AutoGenerateColumns="False" ShowFooter="False" runat="server" Width="200px"
                    Height="20px" BorderColor="black" BorderStyle="Solid" BorderWidth="1px">
                    <Columns>
                     <asp:BoundColumn DataField="EqpmentNo" ItemStyle-Width="80px" HeaderText="Equipment No" ReadOnly="True"
                      ItemStyle-Wrap="False"></asp:BoundColumn>
                     <asp:BoundColumn DataField="eqpmentType" ItemStyle-Width="70px" HeaderText="Type" ReadOnly="True"></asp:BoundColumn>
                     <asp:BoundColumn DataField="IssueDate" ItemStyle-Width="50px" HeaderText="Issue_Date" ReadOnly="True"></asp:BoundColumn>
                    </Columns>
                   </asp:DataGrid>
                  </iewc:pageview>
                  <iewc:pageview id="driversalary">
                   <asp:Button ID="test1" Text="page2" Runat="server"></asp:Button>
                  </iewc:pageview>
                  <iewc:pageview id="driverothers">
                   <asp:Button ID="Button1" Text="page3" Runat="server"></asp:Button>
                  </iewc:pageview>
                 </iewc:multipage>

    ----------------------------------------------- and code behind:

    Sub BindGrid()
            Dim dt As System.Data.DataTable
            Dim dr As System.Data.DataRow
            Dim i As Integer
            'create a DataTable
            dt = New System.Data.DataTable
            dt.Columns.Add(New System.Data.DataColumn("EqpmentNo", GetType(Integer)))
            dt.Columns.Add(New System.Data.DataColumn("eqpmentType", GetType(String)))
            dt.Columns.Add(New System.Data.DataColumn("IssueDate", GetType(String)))
            'Make some rows and put some sample data in
            For i = 1 To 9
                dr = dt.NewRow()
                dr(0) = i
                dr(1) = "Type " + i.ToString()
                dr(2) = "Date " + i.ToString()
                dt.Rows.Add(dr)
            Next
            dgEmptyList.DataSource = dt
            dgEmptyList.DataBind()

    End Sub
    ------------------------------------

     

    Somehow I cant access the DataGrid and bind the Grid.

    Could someone please point out what I did wrong.  Thanks in advance.

Page 1 of 1 (1 items)
Microsoft Communities