or
Private Sub rgvGrid_CellEditorInitialized(ByVal sender As Object, _ |
ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) _ |
Handles rgvGrid.CellEditorInitialized |
If TypeOf rgvNotes.CurrentColumn Is GridViewDataColumn Then |
Select Case DirectCast(rgvNotes.CurrentColumn, GridViewDataColumn).UniqueName |
Case "SomeColumnName" |
Dim activeEditor As RadDateTimeEditor = TryCast(rgvNotes.ActiveEditor, RadDateTimeEditor) |
If activeEditor IsNot Nothing Then |
Dim editorElement As RadDateTimeEditorElement _ |
= TryCast(activeEditor.EditorElement, RadDateTimeEditorElement) |
If editorElement IsNot Nothing Then |
Dim dateTimePickerCalendar As RadDateTimePickerCalendar _ |
= TryCast(editorElement.GetCurrentBehavior(), RadDateTimePickerCalendar) |
If dateTimePickerCalendar IsNot Nothing Then |
dateTimePickerCalendar.Calendar.ShowFooter = False |
End If |
End If |
End If |
End Select |
End If |
End Sub |
foreach
(GridViewRowInfo dr
in
grdHuntGroups.Rows)
{
dr.Cells[
"Presented"
].Value = 0;
dr.Cells[
"Handled"
].Value = 0;
dr.Cells[
"Voicemail"
].Value = 0;
dr.Cells[
"Abandoned"
].Value = 0;
dr.Cells[
"Overflowed"
].Value = 0;
}
for (int i = 0; i < grdHuntGroups.Rows.Count; i++)
{
grdHuntGroups.Rows[i].Cells["Presented"].Value = 0;
grdHuntGroups.Rows[i].Cells["Handled"].Value = 0;
grdHuntGroups.Rows[i].Cells["Voicemail"].Value = 0;
grdHuntGroups.Rows[i].Cells["Abandoned"].Value = 0;
grdHuntGroups.Rows[i].Cells["Overflowed"].Value = 0;
}