Heike Posted August 5, 2002 Posted August 5, 2002 I have a simple form, including only a toolbar and a datagrid. When loaded, I want to set a start cell, so that the user can edit immediately without having to click into the cell. This is what I tried: Dim dgc As New DataGridCell(0, 1) Dim dgtb As DataGridTextBoxColumn '..... code Me.grdData.Focus() Me.grdData.CurrentCell = dgc dgtb = CType(Me.grdData.TableStyles(0).GridColumnStyles(1), DataGridTextBoxColumn) dgtb.TextBox.Focus() dgtb.TextBox.Select() Any ideas where I made a mistake? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.