SyntaxFix
Write A Post
Hire A Developer
Questions
Or, you can use a control class instead of their types:
control
GridViewRow row = (GridViewRow)(((Control)e.CommandSource).NamingContainer); int RowIndex = row.RowIndex;