Hi
I am having trouble with creating a gridview dynamically. Any help would be much appreciated.
The Problem:
I have a range of dates that changes, i want those dates to be the column headers and thus cannot create the columns in the asp page. Also under each column must be a textbox, or at the very least an editable label.
How do i go about creating this gridview, or if anyone has any...
User Profile
Collapse
-
Dynamically create gridview with textboxes
-
Populating dropdown lists in Gridview from Database
Hi i am having trouble with the following problem any help would be appreciated::
The gridview starts off with empty text boxes for input along with already populated dropdowns to choose from for input. This is all fine, but when it has saved and needs to be called back to the same gridview how do i get it to choose from the dropdown list the choice that was in the database.
For example:
if the list contains... -
String Value in a SQL statement
Hi
I am trying to get data from my database using a string value, but keep getting an error message "Value of type string cannot be converted to system.data.dat aset"
The code is:
strRetailTenant Type = Replace(dstReta ilTenantType.Ta bles(0).Rows(0) .Item(0), " ", "")
dstRentalIndex = ("Select " & strRetailTenant Type.Trim & "... -
Thanks Frinavale, have it working now! I am an idiot and my datasource was empty.
Thanks again -
RE: Frinavale
Thank you for replying so promptly. I have tried what you suggested, and i must admit that i am quite new to programming so i might have misunderstood. But here is my code never the less.
Code:Protected Sub ddMerchCat_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Dim objRecordsource As New Bestvest_DataAccess.cDataAccess Dim dstSubMerch As New DataSet
Last edited by Frinavale; Nov 17 '09, 02:12 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.Leave a comment:
-
Dropdown lists in gridviews on selected index changed.
Hi
Is it possible to change the data source of a dropdown list in a gridview from another dropdown list selected index changed method in the same gridview?
for example I have a dropdown that needs to change its contents depending on what is chosen in the previous cell of the gridview, which is also a dropdown list.
Any Help would be much appreciated
Thanks
No activity results to display
Show More
Leave a comment: