Epicor_Integration.SearchPart.SearchResultGrid_DoubleClick C# (CSharp) Method

SearchResultGrid_DoubleClick() public method

public SearchResultGrid_DoubleClick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        void SearchResultGrid_DoubleClick(object sender, EventArgs e)
        {
            //Pass selected part number on
            int y = SearchResultGrid.Rows.IndexOf(SearchResultGrid.SelectedRows[0]);

            _PartNumber = SearchResultGrid["PartNum", y].Value.ToString();

            _Description = SearchResultGrid["PartDescription", y].Value.ToString();

            DialogResult = DialogResult.OK;

            this.Close();
        }