Rock.Web.UI.Controls.RowEventArgs.RowEventArgs C# (CSharp) Method

RowEventArgs() public method

Initializes a new instance of the RowEventArgs class.
public RowEventArgs ( GridViewRow row ) : System
row GridViewRow The row.
return System
        public RowEventArgs( GridViewRow row )
        {
            if ( row != null )
            {
                RowIndex = row.RowIndex;

                Grid grid = ( row.Parent.Parent as Grid );
                if ( grid.DataKeyNames.Length > 0 && grid.DataKeys.Count > row.RowIndex )
                {
                    RowKeyValue = grid.DataKeys[row.RowIndex].Value;
                    RowKeyValues = grid.DataKeys[row.RowIndex].Values;
                }
            }
            else
            {
                RowIndex = -1;
            }
        }

Same methods

RowEventArgs::RowEventArgs ( int rowIndex, object rowKeyValue ) : System
RowEventArgs