반응형

 

C# datagridview change style when specific column value changes

 

dgList = datagridview name

        private void dgList_CellValueChanged(object sender, DataGridViewCellEventArgs e)
        {
            int temp_row_index = e.RowIndex;
            int temp_column_index = e.ColumnIndex;

            
            if (temp_row_index >= 0 && temp_column_index == 9)
            {
                DataGridViewCell cell = dgList.Rows[temp_row_index].Cells[temp_column_index];

                cell.Style.Font = new Font("맑은 고딕", 13F, FontStyle.Bold);
            }
        }

 

 

 

반응형

'coding > Visual Studio' 카테고리의 다른 글

c# bitmap 라인 그리기 예제  (0) 2024.06.19
C-multiplication table(구구단)  (0) 2024.06.05

c# bitmap 라인 그리기

 

bicturebox1 에 넣기

 

 

https://learn.microsoft.com/ko-kr/dotnet/desktop/winforms/advanced/how-to-create-a-bitmap-at-run-time?view=netframeworkdesktop-4.8

 

방법: 런타임에 비트맵 만들기 - Windows Forms .NET Framework

비트맵 개체를 만들고 기존 Windows Forms PictureBox 컨트롤에 표시하는 방법을 알아봅니다.

learn.microsoft.com

 

 

반응형

#include <stdio.h>

main()
{
 int c;
 for(int a=2;a<=9;a++)
 {
  for(int b=1;b<=9;b++)
  {
   c = a * b;

   printf("%d * %d = %d\n",a,b,c);
  }
   printf("\n");
 }
}

반응형

+ Recent posts

반응형