Exemplo n.º 1
0
        public void SelectRow(object sender, EventArgs e)
        {
            var rows = SearchView.GetSelectedRows();

            if (rows.Count() > 0)
            {
                SelectedValue = Convert.ToInt32(SearchView.GetRowCellValue(rows[0], "Id"));
                SelectedCode  = SearchView.GetRowCellValue(rows[0], CodeColumn).ToString();
                SelectedText  = SearchView.GetRowCellValue(rows[0], CodeColumn).ToString();

                Hide();
            }
            else
            {
                MessageBox.Show(Resources.alert_choose_data, Resources.title_information);
            }
        }