[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 :-)
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.
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
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.
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 ?
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>