O
Omi4u
Guest
Dear All
i have one datagridview with record of employees . i have 7 columns
name age city country joining date termination date status
now what i need is if status = terminated then i want this specific row to be red and hide
i want to keep two radio box, one option caption will be "Show full data" and other with be "Show data without termination" so it will filter the data in datagridview as per radio box.
how can i do this
i have idea to make the row red by using following code but how i can hide it and show it again showing radio option.
For ia As Integer = 0 To ItemsDataGridView.Rows.Count - 1
If ItemsDataGridView.Rows(ia).Cells(8).Value = "Termination" Then
ItemsDataGridView.Rows(ia).Cells(8).Style.BackColor = Color.Red
End If
Next
Continue reading...
i have one datagridview with record of employees . i have 7 columns
name age city country joining date termination date status
now what i need is if status = terminated then i want this specific row to be red and hide
i want to keep two radio box, one option caption will be "Show full data" and other with be "Show data without termination" so it will filter the data in datagridview as per radio box.
how can i do this
i have idea to make the row red by using following code but how i can hide it and show it again showing radio option.
For ia As Integer = 0 To ItemsDataGridView.Rows.Count - 1
If ItemsDataGridView.Rows(ia).Cells(8).Value = "Termination" Then
ItemsDataGridView.Rows(ia).Cells(8).Style.BackColor = Color.Red
End If
Next
Continue reading...