PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
How do I Search typed data in Textbox in Data Grid Column-VBForums
Results 1 to 7 of 7

Thread: How do I Search typed data in Textbox in Data Grid Column

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    PUNE
    Posts
    222

    How do I Search typed data in Textbox in Data Grid Column

    How do I Search typed data in Textbox in Data Grid Column

    on Form load Data From Access TAbles loads into Datagrid

    am having Textbox When i Typed Certain Name it should search on Selected Column

    thanks
    Rajesh

  2. #2
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Thumbs up Re: How do I Search typed data in Textbox in Data Grid Column

    VB Code:
    1. For I = 0 To FGShow.Rows
    2. If FGShow.Cell(flexcpText, FGShow.Rows, 0) = Text1.Text Then
    3. MsgBox "FOUND"
    4. Exit For
    5. End If
    6. Next

    SHAKTI

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    PUNE
    Posts
    222

    Re: How do I Search typed data in Textbox in Data Grid Column

    What is FG.Show & flexcpText

    on Which Event i should write the Loop

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    PUNE
    Posts
    222

    Re: How do I Search typed data in Textbox in Data Grid Column

    Its urgent one anyone pls

  5. #5
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: How do I Search typed data in Textbox in Data Grid Column

    VB Code:
    1. Private Sub Command1_Click()
    2. For i = 0 To VSFlexGrid1.Rows
    3. If VSFlexGrid1.Cell(flexcpText, VSFlexGrid1.Row, 0) = Text1.Text Then
    4. MsgBox "Data Position at row" + Str(VSFlexGrid1.Row) + "Colum zero", vbInformation
    5. Exit For
    6. End If
    7. Next
    8. End Sub

    for text
    VSFlexGrid1.Cell(flexcpText,[position of row],[position of colum])
    for numeric value
    VSFlexGrid1.Cell(flexcpvalue,[position of row],[position of colum])


    use it
    hope u understand

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    PUNE
    Posts
    222

    Re: How do I Search typed data in Textbox in Data Grid Column

    am using datagrid not Flexgrid

  7. #7
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Arrow Re: How do I Search typed data in Textbox in Data Grid Column

    in my opwnion flexgrid is better then datagrid

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width