Dear Sir,
Following are my code in Itemcommand And ItemCreated and plz check
and reply back to me plz.
Private Sub grdData_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
grdData.ItemCommand
If CType(e.CommandSource, ImageButton).CommandName = "Edit"
Then
Dim u As String = e.Item.Cells(viewstate("Cell")).Text
If Request.QueryString("tid") = "User" Then
If RdoUser.Checked = True Then
Response.Redirect(formName & "?Action=edit&tid=" &
CStr(ViewState("TableName")) & "&Userid=" & e.Item.Cells(1).Text &
"&Name=" & e.Item.Cells(viewstate("Cell")).Text)
End If
If RdoGroup.Checked = True Then
Response.Redirect(formName & "?Action=edit&tid=" &
CStr(ViewState("TableName")) & "&Groupid=" & e.Item.Cells(1).Text &
"&Name=" & e.Item.Cells(viewstate("Cell")).Text)
End If
End If
If Request.QueryString("tid") = "Rights" Then
If RdoUser.Checked = True Then
Response.Redirect(formName & "?Action=edit&tid=" &
CStr(ViewState("TableName")) & "&UsrId=" & e.Item.Cells(1).Text &
"&Name=" & e.Item.Cells(viewstate("Cell")).Text)
End If
If RdoGroup.Checked = True Then
Response.Redirect(formName & "?Action=edit&tid=" &
CStr(ViewState("TableName")) & "&GrpId=" & e.Item.Cells(1).Text &
"&Name=" & e.Item.Cells(viewstate("Cell")).Text)
End If
End If
If Request.QueryString("tid") <> "User" Or
Request.QueryString("tid") <> "Rights" Then
Response.Redirect(formName & "?action=edit&tid=" & CStr
(ViewState("TableName")) & "&rid=" & e.Item.Cells(1).Text & "&Name=" &
e.Item.Cells(viewstate("Cell")).Text)
End If
End If
End Sub
-----------------------------------------------
Private Sub grdData_ItemCreated(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
grdData.ItemCreated
e.Item.Cells(1).Visible = False
End Sub
Kindly check and revert back to me.
thanks
regards
zahfic.
On Nov 13, 10:37 am, Cerebrus <[EMAIL PROTECTED]> wrote:
> I fail to see how the ItemCommand event can have repercussions on the
> Paging functionality of your DataGrid. I can imagine some effect for
> the ItemCreated event, if you wrote some code to modify the Item
> creation for an ItemType "Pager", but not otherwise.
>
> I think we need see some code.
>
> On Nov 13, 10:26 am, Zahfic Didzler <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hi Dears,
>
> > In My application we have used Datagrid to showing Records from
> > database. We are not able to Implement the Datagrid Paging Concept
> > bucause of we used ItemCommand Event and ItemCreated Event.
> > ItemCommand Event. How to implement without removing the both of the
> > events coding. Please guide me.
>
> > Thanks
>
> > With Luv
> > Zahfic- Hide quoted text -
>
> - Show quoted text -