Click to See Complete Forum and Search --> : TextBoxes in GridView


akshatha306
July 31st, 2006, 08:12 AM
hi all,

I have a gridView with 2 columns in my aspx page.
The first column contains all TextBoxes which should contain data from the database.
Second column should have delete button...

I have got the design.
Now the problem is:In the first column there are only TextBoxes. i want the first row TextBox to be from a different column in the table in the database.
and the rest of the Textboxes to be from another column.
i dont know how i can populate the first row textBox separately. also the first row textBox to be of a bigger size than the other two. i dont know how i can access the text box in the first row separately.



Somebody help me out please...:-(

mcmcom
July 31st, 2006, 03:55 PM
if you want a datagrid the columns in it must pull from the same database column.
if Line 1 has to get a different column you will need another data grid just for that row.

hth,
mcm

akshatha306
August 1st, 2006, 12:17 AM
Hi guys,

I am having a tough time designing this page... I shall explain here. If somebody can give me any ideas?

OK... TextBox called Country which will have the country name.
Under that would be the set of states in that country..This should be within the Grid View. Initially this is loaded from the database.Now it is editable
There should be 2 buttons. saying add State and add country.
If i click on the add State... another textbox should appear (ie another row in the grid) in the same country where the user can enter a state.
If i click on add country another blank set of country and state textBoxes should appear where the user can enter a new country and all states under it..
This should all be using Grid View.
How can i do it..
Can i display a blank grid when a add country button is clicked.
Someone can help me.

akshatha306
August 1st, 2006, 07:10 AM
Hi guys i'm like trying all the possible things to get the above problem...
Can somebody tell me if we can have a textBox in the first row in the first column of a gridview. and add a datalist in the Second row of the same column in the same gridview.

in short-can we have different controls within the same column of the gridview