Physical position of table row inside Gridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anasrazvi
    New Member
    • Nov 2007
    • 1

    Physical position of table row inside Gridview

    Hello All,
    I am implementing autocomplete functionality for a textbox inside a gridview. For this I am using a Div control to place the data based on the prefix key entered inside textbox.

    As far as getting the data into the Div control is concerned, there is absolutely no problem, but the positioning of Div control is troubling me a lot.

    I want the Div Control to be outside the gridview and to be placed dynamically just below of the textbox being edited.

    So I want to get the position(Left, Top, Height, Width) of a particular row of GridView(Relati ve to the Document), so that I can place my Div control just below the textbox(Top + Height) using Javascript. Somebody please help me get the physical position of <TR> or <TD> inside a gridview control.


    Thanx in Advance
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to TSDN!

    You need to set the top and left attributes to textbox.style.t op+height_of_te xtbox and textbox.style.l eft respectively.

    Comment

    Working...