|
-
Feb 9th, 2009, 03:27 AM
#1
Thread Starter
Hyperactive Member
[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:
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.
-
Feb 10th, 2009, 07:47 AM
#2
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.
-
Feb 10th, 2009, 07:10 PM
#3
Thread Starter
Hyperactive Member
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.
-
Feb 11th, 2009, 01:48 PM
#4
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.
-
Feb 12th, 2009, 02:16 AM
#5
Thread Starter
Hyperactive Member
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.
-
Feb 13th, 2009, 05:57 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|