Public Sub disgnGrd()
DataGridView1.Columns.Clear()
DataGridView1.Rows.Clear()
DataGridView1.ColumnHeadersDefaultCellStyle.ForeColor = Color.Blue
DataGridView1.Columns.Add("state", "State")
DataGridView1.Columns.Add("Total_collegeInaffidavit", "Total Colleges In Affidavit")
DataGridView1.Columns.Add("Totalcollegeinmaster", "Total Colleges in Master")
DataGridView1.Columns.Add("totalaffidavit", "Total Affidavits")
DataGridView3.Columns("Frequncy").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
'***SET DATAGRIDVIEW COLUMNS WIDTH***
DataGridView1.Columns("state").Width = 170
DataGridView1.Columns("Total_collegeInaffidavit").Width = 108
DataGridView1.Columns("Totalcollegeinmaster").Width = 108
DataGridView1.Columns("totalaffidavit").Width = 108
End Sub
DataGridView1.Columns.Clear()
DataGridView1.Rows.Clear()
DataGridView1.ColumnHeadersDefaultCellStyle.ForeColor = Color.Blue
DataGridView1.Columns.Add("state", "State")
DataGridView1.Columns.Add("Total_collegeInaffidavit", "Total Colleges In Affidavit")
DataGridView1.Columns.Add("Totalcollegeinmaster", "Total Colleges in Master")
DataGridView1.Columns.Add("totalaffidavit", "Total Affidavits")
DataGridView3.Columns("Frequncy").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
'***SET DATAGRIDVIEW COLUMNS WIDTH***
DataGridView1.Columns("state").Width = 170
DataGridView1.Columns("Total_collegeInaffidavit").Width = 108
DataGridView1.Columns("Totalcollegeinmaster").Width = 108
DataGridView1.Columns("totalaffidavit").Width = 108
End Sub
No comments:
Post a Comment