Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If e.Item.ItemIndex > -1 Then
- If e.Item.ItemIndex = dgDocumentRequests.EditItemIndex Then
- '****************************************************
- ' only Kinex Employees can modify existing requests; otherwise only track responses via Fill Request item command
- ' Approved requests should not be editable
- '****************************************************
- Dim dstatus As DropDownList = CType(e.Item.FindControl("dgdllStatus"), DropDownList)
- 'obviously this needs to be changed
- '******************************************************
- If g_UserName = "Administratora" Then
- '******************************************************
- e.Item.Cells(1).Enabled = False
- e.Item.Cells(2).Enabled = False
- e.Item.Cells(3).Enabled = False
- e.Item.Cells(4).Enabled = False
- e.Item.Cells(5).Enabled = False
- dstatus.Items.Clear()
- dstatus.Items.Add(New ListItem("Reply", "Reply"))
- Else
Add Comment
Please, Sign In to add comment