or
hi,telerik,
I'm a telerik user ,i encountered a problem when i used the gridview Control in my gui,i have two question as following:
1>i just want to set the height of the header in the gridview,but i can't find out which property should be set,could u pls give me an example about how to implement it ?
2>and another question ,when you set up a relation in the gridview ,and the childtable will be displayed in the current record,you will find a plus(+) image in the first cell ,i want to replace the plus(+) image with my image ,and how to implement ?
thanks for you help and support
| Else ' -- Not Keys.Control, .Shift or .Alt |
| Select Case keys.KeyCode |
| Case Windows.Forms.Keys.Left |
| If Not .MasterGridViewTemplate.AllowEditRow Then |
| ' -- If Only One Row Selected |
| If .SelectedRows.Count = 1 Then |
| ' -- If Selected Row is Expanded |
| If .SelectedRows(0).IsExpanded Then |
| .SelectedRows(0).IsExpanded = False |
| Return True |
| Else |
| Dim oParentRow As GridViewDataRowInfo = .CurrentRow.ViewInfo.ParentRow |
| If oParentRow IsNot Nothing Then |
| .CurrentRow = oParentRow |
| 'oParentRow.IsExpanded = False |
| .SelectedRows(0) = .CurrentRow |
| .SelectedRows(0).IsCurrent = True |
| .SelectedRows(0).InvalidateRow() |
| .CurrentRow.InvalidateRow() |
| .CurrentRow.EnsureVisible() |
| .SelectedRows(0).EnsureVisible() |
| End If |
| Return True |
| End If ' -- Else Not (Selected Row is Expanded) |
| End If ' -- Only One Row Selected |
| ' -- Don't allow Column selection on Master Template |
| Return True |
| End If ' -- Not AllowEditRow |
| ' -- End Case Windows.Forms.Keys.Left |
| Case Windows.Forms.Keys.Right |
| If Not .MasterGridViewTemplate.AllowEditRow Then |
| If .SelectedRows.Count = 1 Then |
| .SelectedRows(0).IsExpanded = True |
| End If |
| Return True |
| End If ' -- Not AllowEditRow |
| ' -- End Case Windows.Forms.Keys.Left |
| End Select ' -- keys.KeyCode |
| End If ' -- Else Not Keys.Control, .Shift or .Alt |