Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...