or
private void listBox1_MouseDown(object sender, MouseEventArgs e)
{
int index = listBox1.IndexFromPoint(e.Location);
listBox1.SelectedIndex = index;
}
Private Sub RadTreeView1_ItemDrag(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RadTreeViewEventArgs) Handles RadTreeView1.ItemDrag
If Not IsNothing(RadTreeView1.SelectedNode) Then
Dim strSelected As String = RadTreeView1.SelectedNode.Text
RadTreeView1.DoDragDrop(" ", Windows.Forms.DragDropEffects.Copy)
Globals.ThisAddIn.Application.ActiveCell.Value = "LB (" & "" & ControlChars.Quote.ToString() & strSelected & ControlChars.Quote.ToString() & "" & ")"
End If
End Sub
Sunday |
Monday |
||||
Morning |
Afternoon |
Evening |
Morning |
Afternoon |
Evening |
|
|
|
|
|
|
radGridView1.MasterGridViewTemplate.BestFitColumns();
Now when i click one the columns to make it autosize to fit its contents, eg a column that has a long sentence in it, i expect to see a horizontal scroll bar so that i can stil scroll to view the other columns. But unfortunately the scroll bar never shows up :( Even though HorizontalScollState = AutoHide. All i simply want is for a scroll bar to show up when there are too many columns.
I must be missing something for sure! Do i need to set specific widths on columns, so that the scroll bar comes up and works?
Thanks for any suggestions.
Chris.