Ask a Question related to ASP.NET General, Design and Development.
-
San Diego Guy #1
copying value of DDL in a Datagrid "pre-edit command" to value in "post edit command"
Hi all!
I have Datagrid.
Within that datagrid I have a drop down list that I set up some values in (a
"collection")
I set up an edit command column on the datagrid and wrote simple code to get
me in to edit mode:
sub dgEdit(ByVal s As Object, ByVal e As DataGridCommandEventArgs)
dgStatus.EditItemIndex = e.Item.ItemIndex
bindData() 'This is just a sub I wrote to re-bind the data
end sub
So, when I click edit in the datagrid, it goes in to edit mode... but the
value that was displayed where the drop down list gets put in does not show
up, it shows the first item in the ddl 'collection'.
I figured that I had to grab the value of that control before the edit so I
added the following in to the above sub:
dim ddlStatus as DropDownList
ddlStatus = e.Item.FindControl("ddlStatus")
Now I figure I can probably access that value with something like:
ddlStatus.SelectedItem.Text
Problem is, how do I them put that in to the selected text for the
"post-edit" drop down list?
I hope this makes sense, if not please post and I'll try to give more
information.
Thanks all!
Steve
San Diego Guy Guest
-
"select into outfile" command with field names as the first lineof the file
Hi all ;) The question is in the subject. I had a look in the export_option but nothing appeared. I don't want to use a sophisticated tool to do... -
What is the difference between command "PS" and "PS -aux"
Hi, I am new to Unix. I hope this is the right group for me to learn about it. Question: when I run PS command, I only have a few current process.... -
changing the default folder for the "open file" command
Is there any way to change the default folder that opens on the "open file" command - to a folder other than "My Documents"? I am using XP... -
"Weld" command in "Corel Draw"
Hi there: I'm new to Illustrator but have used Corel Draw in the past. In Corel Draw there was a "Weld" command. What this did was create a drawing... -
Newb Questions #2: Environment Variables for CLI? (I get "command not found" errors )
Hello Caught Napping wrote: That's probably because the command is called "rm". If you want to use "remove", you have to define an alias....



Reply With Quote

