dropdown in datagrid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anjupt
    New Member
    • Oct 2006
    • 13

    #1

    dropdown in datagrid

    Hi,

    I can add values to a dropdown from 1 to 100 using a while loop in page load.ie
    Dim i = 1
    While i <= 100
    Me.DropDownList 2.Items.Add(i)
    ' i = i + 1
    End While
    this code if written in page load gives out a dropdown consisting of numbers 1 to 100 on execution of the page ..

    My problem, i want to place a dropdown consisting numbers 1 to 100 in a datagrid by using loop rather adding items from 1 to 100 in property.


    or

    I have html table consisting values 1 to 100 and onclick event it returns the value of the specific cell clicked to a textbox.
    My problem is that i have placed a textbox in a datagrid and i want to place the number clicked from the html into textbox placed in the datagrid.

    if there are 10 rows in datagrid there will be 10textboxes and one html table consisting of numbers so if i click on the textbox and then on the html table the value should be placed in the textbox.if click on the 5th row textbox and i click on cell with value 10 in html table the textbox must have value 10


    Thankyou
Working...