Mada Black

Mada Black

  • NA
  • 67
  • 2.8k

Display date now in the whole gridview column

Apr 15 2020 10:30 AM
Hello Forum
Hello every one
Please Gentelman if you can help me to resolve this problem
I have this code  to do the whole column number 8 of DataGirdView1 in datetime type
  1. For M As Integer = 0 To DataGridView1.Rows.Count - 1  
  2.         DataGridView1.Rows(M).Cells(8).Value = Date.Now  
  3.     Next 
 But now i change DataGridView with GridControl .. but this code does not work correctly
  1. For M As Integer = 0 To GridView1.RowCount - 1  
  2.        GridView1.GetRowCellValue(M).Columns(8) = Date.Now  
  3.    Next 
 Thank you in advance for help
Cordially
MADA

Answers (4)