Results 1 to 6 of 6

Thread: [02/03] Control Position moving Problem

  1. #1

    Thread Starter
    Hyperactive Member nUflAvOrS's Avatar
    Join Date
    Jul 2007
    Location
    Malaysia/ Currently at Singapore
    Posts
    372

    [02/03] Control Position moving Problem

    Hi All,

    Can anyone show me the way to move the position of a control in run time when a datagrid is having more rows.

    I had tried to use this way but I can't get the exact value of height for datagrid.


    ASP Code:
    1. Me.Toolbar1.Style.Item("TOP") = (Val(dgSchoolName.Style.Item("TOP")) + dgSchoolName.Height.Value) & "px"

    Thanks :-)
    Where there is no hope, there can be no endeavor.

    There are two ways of rising in the world, either by your own industry or by the folly of others.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [02/03] Control Position moving Problem

    Can you explain the context of the question? What we need to know is why do you want to do this?

    And the reason for wanting to know is that this is not normal behavior and you'd generally have another way (usually within the HTML/CSS) that takes care of this.

  3. #3

    Thread Starter
    Hyperactive Member nUflAvOrS's Avatar
    Join Date
    Jul 2007
    Location
    Malaysia/ Currently at Singapore
    Posts
    372

    Re: [02/03] Control Position moving Problem

    Ok mendhak i explain more detailed about it.

    assume that my form having a datagrid and a label at the bottom of datagrid.

    when my table rows expanded my label will bring to the front of datagrid and

    overlap the datagrid. Thus, I would like to pull down my label if datagrid was

    expanded.

    Thanks mendhak hope you may understand my question

    Cheers,
    zhixuen
    Where there is no hope, there can be no endeavor.

    There are two ways of rising in the world, either by your own industry or by the folly of others.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [02/03] Control Position moving Problem

    Right, so it's like I said - you've jumped to a wrong question.

    You need to wrap your grid and label in separate DIVs so that as the datagrid expands, it pushes the label down automatically.

  5. #5

    Thread Starter
    Hyperactive Member nUflAvOrS's Avatar
    Join Date
    Jul 2007
    Location
    Malaysia/ Currently at Singapore
    Posts
    372

    Re: [02/03] Control Position moving Problem

    Thanks Guru,

    Before I posted the thread I have been searched through the vbforums advance search engine. I found the similar thread which also answered by Guru. I returned almost the knowledge of web to my university lecture because I do not need to use past few year.

    Can Guru Mendnak provide me the further detail ?
    How I organize my DIV ?
    Where there is no hope, there can be no endeavor.

    There are two ways of rising in the world, either by your own industry or by the folly of others.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [02/03] Control Position moving Problem

    Er... university lecture? Sorry, didn't understand that.
    Code:
    <div>
    <asp:DataGrid id="....." ..........>
    ............
    ............
    </asp:DataGrid>
    </div>
    <div>
    <asp:label text="hello" id="blah" runat="server">
    </div>

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