본문 바로가기
728x90
반응형

소프트웨어 개발/비주얼스튜디오(Visual Studio)9

[C#/Selenium WebDriver] 특정 요소가 화면에 보일 때 까지 기다리는 방법 1. [NuGet 패키지 관리]에서 [DotNetSeleniumExtras.WaitHelpers] 설치 2. 아래 소스 추가! - css 요소가 화면에 보일때까지 대기. // 화면에 요소가 보일 때까지 대기 private static bool ElementWait(IWebDriver driver, By by) { WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(5)); try { IWebElement element = wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(by)); } catch (Exception e) { return false; } r.. 2022. 6. 21.
[C#/Devexpress/Winform] GridControl(GridView) 사용하기 - 1 GridControl 사용하여 [추가 / 삭제 / 불러오기 / 저장하기 / 초기화] 하는 방법을 알아보도록 하겠습니다. 1. 기본 세팅 - GridControl을 form에 추가 - 소스 기본 세팅 using System.Data; using DevExpress.XtraGrid.Views.Grid; namespace Winform { public partial class GridControlTest : Form { DataTable dt = new DataTable(); public GridControlTest() { InitializeComponent(); //GridControl 초기화 InitGridControl(); dt = new DataTable(); // DataTable 생성 dt.Colu.. 2022. 6. 20.
[C#] Devexpress GridContorl(GridView) 가운데 정렬 방법 [ GridControl(GridView) - 가운데 정렬] ▶ gridView1를 클릭 한 후 [textoption] 검색 ▶ header : Appearance > HeaderPanel > TextOptions > HAlignment / VAlignment : Center 로 변경 ▶ row : Appearance > Row > TextOptions > HAlignment / VAlignment : Center 로 변경 ▶ 코드에서도 가운데 정렬 가능하다. dataTable.Columns["name"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; 2022. 6. 20.
728x90
반응형