private void comboBoxDeleteDevice_SelectedIndexChanged(object sender, EventArgs e) { string deviceID = comboBoxDeleteDevice.GetItemText(comboBoxDeleteDevice.SelectedValue); //DataRow[] drs = deleteDeviceInfo.Select("F_DeviceId = '"+deviceID+"'"); if (deviceID.Length >= 36) { textBoxDeleteDeviceName.Text = DeviceManageDAL.GetDeviceName(deviceID); } }