Click here to Skip to main content
15,886,963 members
Home / Discussions / Database
   

Database

 
AnswerRe: "show create table" equivalent in MSSQL Pin
Colin Angus Mackay11-Dec-05 4:48
Colin Angus Mackay11-Dec-05 4:48 
GeneralRe: "show create table" equivalent in MSSQL Pin
karanba11-Dec-05 5:01
karanba11-Dec-05 5:01 
GeneralRe: "show create table" equivalent in MSSQL Pin
Colin Angus Mackay11-Dec-05 5:15
Colin Angus Mackay11-Dec-05 5:15 
AnswerRe: "show create table" equivalent in MSSQL Pin
Fariborz Golara11-Dec-05 10:21
Fariborz Golara11-Dec-05 10:21 
GeneralRe: "show create table" equivalent in MSSQL Pin
Colin Angus Mackay12-Dec-05 4:55
Colin Angus Mackay12-Dec-05 4:55 
AnswerRe: "show create table" equivalent in MSSQL Pin
Mike Dimmick12-Dec-05 5:34
Mike Dimmick12-Dec-05 5:34 
GeneralRe: "show create table" equivalent in MSSQL Pin
karanba12-Dec-05 22:14
karanba12-Dec-05 22:14 
Questionfocus on row Pin
NikoTanghe9-Dec-05 22:50
NikoTanghe9-Dec-05 22:50 
What I want to do:
I have a listview, when the user clicks on a row and presses an edit
button, a dialog is shown and the user can change the row in the dataset.
The dialog contains several databound edit controls.

problem:
The dialog should focus on the right row. most of the time,
this is correct. But sometimes it is not. Not sure why, but it happens
when I add, remove rows from the dataset or sort the data.

Is this approach correct?
what should be the problem?

my code:

    <br />
Private Sub btnWICustomerEdit_Click(...) ...<br />
        Dim key As Integer = getkey()<br />
<br />
        'create form<br />
        Dim EditData As frmEditDataActivities = New frmEditDataActivities(...)<br />
<br />
        Dim rowIndex As Integer = dsCustomers.Tables(0).DefaultView.Find(Key)<br />
        If rowIndex = -1 Then<br />
            Return<br />
        End If<br />
<br />
        'focus on the right row<br />
        EditData.SetFocusRow(rowIndex, dsCustomers)<br />
        EditData.ShowDialog()<br />
<br />
        'do update, save changes<br />
    End Sub<br />
<br />
    'a member from the dialog class<br />
    Public Sub SetFocusRow(ByVal rowIndex As Integer, ByRef dsCustomers As dsCustomers)<br />
        Dim cm As CurrencyManager<br />
        cm = CType(Me.BindingContext(dsCustomers, dsCustomers.Tables(0).TableName), CurrencyManager)<br />
        cm.Position = rowIndex<br />
    End Sub<br />
<br />

Questionquestion Pin
eyalso9-Dec-05 22:05
eyalso9-Dec-05 22:05 
AnswerRe: question Pin
Colin Angus Mackay10-Dec-05 7:34
Colin Angus Mackay10-Dec-05 7:34 
QuestionADO with VS.Net Query Failure when Time is selected Pin
K.J.B.9-Dec-05 13:07
K.J.B.9-Dec-05 13:07 
Questionmanaging long data types Pin
kasko_9-Dec-05 11:42
kasko_9-Dec-05 11:42 
QuestionInconsistent Read issues Pin
tsramkumar9-Dec-05 9:31
tsramkumar9-Dec-05 9:31 
Questionadp.Fill method pooling issues Pin
Joshua Lunsford9-Dec-05 7:57
Joshua Lunsford9-Dec-05 7:57 
AnswerRe: adp.Fill method pooling issues Pin
Farhan Noor Qureshi9-Dec-05 12:00
Farhan Noor Qureshi9-Dec-05 12:00 
QuestionHelp - I'm a Novice - SQL Query Problem Pin
kabatlantafan79-Dec-05 5:20
kabatlantafan79-Dec-05 5:20 
AnswerRe: Help - I'm a Novice - SQL Query Problem Pin
miah alom9-Dec-05 5:58
miah alom9-Dec-05 5:58 
GeneralRe: Help - I'm a Novice - SQL Query Problem Pin
Farhan Noor Qureshi9-Dec-05 6:03
Farhan Noor Qureshi9-Dec-05 6:03 
GeneralRe: Help - I'm a Novice - SQL Query Problem Pin
miah alom9-Dec-05 6:03
miah alom9-Dec-05 6:03 
QuestionDiffering Results between Record binding (C++) and Collect method Pin
Stone Free9-Dec-05 3:42
Stone Free9-Dec-05 3:42 
QuestionCounter Pin
vuthaianh8-Dec-05 17:08
vuthaianh8-Dec-05 17:08 
AnswerRe: Counter Pin
Colin Angus Mackay8-Dec-05 20:22
Colin Angus Mackay8-Dec-05 20:22 
GeneralRe: Counter Pin
vuthaianh10-Dec-05 15:10
vuthaianh10-Dec-05 15:10 
GeneralRe: Counter Pin
Johny Ng12-Dec-05 8:20
Johny Ng12-Dec-05 8:20 
QuestionODBC rowset size Pin
jia20048-Dec-05 9:21
jia20048-Dec-05 9:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.