Question : Dropdowns in grid view 'edit item template' not working

I have a gridview that displays information on a page.  I have added some templated dropdowns to the edit item template.  I am getting an error page that states, "'ddStatus' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value".  

I have attached a copy of the code/update sp that runs the gridview.

Can anyone tell me what I am doing wrong here?
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:

    
 
    

************* @statusID as int ,@status_notes as nvarchar(max) ,@rtn_date as smalldatetime ,@rtn_time as varchar(5) AS BEGIN UPDATE [test].[dbo].[Set] SET [statusID] = @statusID ,[status_modifieddate] = getdate() ,[status_notes] = @status_notes ,rtn_date = @rtn_date ,rtn_time = @rtn_time

Answer : Dropdowns in grid view 'edit item template' not working

Something like the code below, doing the right within VBA rather than in a formula,

Thomas
1:
2:
3:
4:
dim str as string
 
str=selection.offset(-3,-3).value
junk.value=right(str,len(str)-6)
Random Solutions  
 
programming4us programming4us