•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 427,228 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,202 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 279 | Replies: 1
![]() |
•
•
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,585
Reputation:
Rep Power: 11
Solved Threads: 235
i don't know how to focusing it, but here my binding code (automatically focused on first row) :
vb Syntax (Toggle Plain Text)
Private Sub ViewData() Set rs = New ADODB.Recordset rs.CursorType = adOpenDynamic rs.LockType = adLockOptimistic rs.Open "select * from Login ", Conn Set DataGrid1.DataSource = rs DataGrid1.Columns(0).Width = 2000 DataGrid1.Columns(1).Width = 2000 DataGrid1.AllowAddNew = False DataGrid1.AllowArrows = True DataGrid1.AllowDelete = False DataGrid1.AllowUpdate = False End Sub
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Checkbox feature for Dbgrid
- Next Thread: disable changeable property of text, combo, listbox



Linear Mode