i have a datalist, which will contain a lot of entries, but when i select one, it scrolls to the top of the page. is there a way to automatically scroll down to the place where the edit box is so people can view it quickly?
i have a datalist with text bound at runtime, but when it runs, even if i set a length, the text stays on one line and goes beyond that length. How do i get the text (without spaces) to go onto a new line once it gets to the end?
thanks!
I have a datalist on an aspx page, which is bound to a dataview (which gets its data from an xml file through a function i created).
Showing the data works fine, but when i create an edit template where the text is displayed in a text box and i try to change the text in the text box to update the xml file with the update command, the text reverts back to what it originally was.
Does anybody know how to change the text?
Thanks!
Eric
i have a radio buttonlist, which is populated from an xml file at runtime so sometimes, the text of an entry is repeated one or more times. in those cases, when you selected a repeated entry, it selects the first one with that text. how do i stop it from going to the first entry?
i'm not sure where your code is, but after a postback, what you want it to do then should go back to the page_load sub. it's really confusing, but try that.
i found this on MSDN: "When using both, explicitly declared columns will be rendered first, followed by the automatically generated columns. Automatically generated columns are not added to the Columns collection." (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsdatagridclasscolumnstopic.asp)
Mine are automatically generated so how do i make those invisible?
the only thing is maybe i'm putting it in the wrong place... here's where i've been putting it:
datagrid1.datasource = showdata()
datagrid1.databind
datagrid1.columns(1).visible = false (i get an error here)
but it doesn't! ive tried it tons of times & it can see the column created @ design time (w/ the select button) but if i have it tell me the number of columns in the grid, it only sees 1. it shows the other ones but i can't make them invisible.