Results 1 to 29 of 29

Thread: [RESOLVED] datagrid with 2 columns that have different datatable rows

Hybrid View

  1. #1
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: datagrid with 2 columns that have different datatable rows

    Hey,

    So why did you fix it in one location?

    This is the problem with absolute positioning, you have a grid with stuff in it that you don't know how big it will get.

    Take the absolute positioning off, the div should end up directly under the Grid. If this isn't what you want, explain exactly what you do want.

    Gary

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2010
    Posts
    408

    Re: datagrid with 2 columns that have different datatable rows

    do you mean like this??
    (that is the datagrid and the video in the same div)

    Code:
    <div id="grid kai video" style="position:absolute; left: 128px; top: 256px; height:1000px; width:225px"  >  
          
    <asp:DataGrid ID="GridView1" runat="server" AutoGenerateColumns="False" BorderColor="#000000" 
    BorderStyle="Double" BorderWidth="8px" CaptionAlign="Bottom" DataKeyField="text_id" ForeColor="#400040" ItemStyle-CssClass="WhiteSpaced"  
     PageSize="5"  Width="225px" Height="100px" CellSpacing="-1" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" ShowFooter="True" ShowHeader="False" >
                  
                   <PagerStyle BackColor="#FFFFC0"   />
    <ItemStyle BackColor="#FFFFC0" BorderColor="DarkRed" BorderStyle="Inset" BorderWidth="5px" CssClass="WhiteSpaced" Font-Size="Large" 
    Font-Strikeout="False" ForeColor="#400040" horizontalAlign="Left" VerticalAlign="Top" Width="225px" />
                  
                   <Columns>                 
                       <asp:TemplateColumn  >
                          <ItemTemplate    >
                          <asp:LinkButton ID="linkbutton1" runat="server"  BackColor="Transparent"  BorderWidth="0px" PostBackUrl='<%# databinder.eval(container.dataitem,"url") %>' text='<%# databinder.eval(container.dataitem,"titlos") %>'></asp:LinkButton>
                               <asp:Label ID="Label7" runat="server" Text='<%# "<br/>" & databinder.eval(container.dataitem,"user") %>' Font-Size="X-Small" ></asp:Label>
                               <asp:Label ID="Label9" runat="server" Text='<%# " |" & databinder.eval(container.dataitem,"imerominia") & "<br/>" %>' Font-Size="XX-Small"></asp:Label>                      
                         <asp:ImageButton ID="imagebutton1" runat="server"  PostBackUrl='<%# databinder.eval(container.dataitem,"url") %>'  ImageUrl='<%# databinder.eval(container.dataitem,"image") %>'  ></asp:ImageButton>
                         <asp:label ID="Label10" runat="server" Text='<%# "<br/>" & databinder.eval(container.dataitem,"text_captionkomeno").ToString.Replace(chr(13), "<br />") %>'></asp:label>
     
                         </ItemTemplate>
                       </asp:TemplateColumn>                     
                   </Columns>
                  
                   
                   
                   <HeaderStyle  BackColor="#C0C0FF" BorderColor="#8080FF" Font-Bold="True" 
                       Height="0px" HorizontalAlign="Justify" VerticalAlign="Bottom" />
      </asp:DataGrid>
          &nbsp;
      
      <object width="512" height="350"    >
      <param name="movie" value="http://www.youtube.com/v/tVFSn8uKG6w"/><param name="allowscriptaccess" value="always"/>
    
        <embed src="http://www.youtube.com/v/tVFSn8uKG6w"   type="application/x-shockwave-flash" allowscriptaccess="always" width="512"  height="350">
        </embed>
      </object>
          </div>

    but again the video goes right of the grid and not down of the grid??
    can you change the cod to have the video down of the grid??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width