Results 1 to 6 of 6

Thread: DataGrid event fire --needed to be resolved

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Posts
    252

    DataGrid event fire --needed to be resolved

    Hi all gurus,
    Once again, I am back to my rescue team.

    I want to check several functions in click event of DataGrid ROWS.

    Rightnow, I have wrote it in _CurrentCellChanged event. but I want it on 1] click event in datagrid rows. and
    2] keypress event in datagrid rows.

    somehow, I am not getting it, can u please help me out !


    Thank you ,all....
    Last edited by NANC; Sep 2nd, 2004 at 10:51 AM.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Posts
    252
    Hi all gurus,
    I would like to explain my case other way;


    When I click on datagrid row, I want to know in which cell i clicked.

    May be someone knows,

    Thank you.

  3. #3
    Hyperactive Member temp_12000's Avatar
    Join Date
    Jan 2004
    Location
    LA, USA
    Posts
    411
    Originally posted by NANC
    Hi all gurus,
    I would like to explain my case other way;


    When I click on datagrid row, I want to know in which cell i clicked.

    May be someone knows,

    Thank you.
    Private Sub DataGrid1_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.CurrentCellChanged

    Dim cell As DataGridCell = DataGrid1.CurrentCell

    Label1.Text = String.Format("Current at ({0}, {1})", _
    cell.RowNumber, cell.ColumnNumber)

    End Sub



  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Posts
    252
    Thank you for your help,

    DataGrid1_CurrentCellChanged will work while clicking from one cell to another.

    But if user clicks second time on the same cell, this event won't fire.

    I want it to fire in any cell click, any number of time clicked.

    Is there any way for that ?

    Thank you,
    -Nanc

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Posts
    252
    HI all,

    I tried DATAGRID.CLICK event. but it dosent work on cells.
    is there any acset event as a problem solver.


    Thank you,

    -Nanc

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Posts
    252
    I tried DATAGRID_CLICK event. but it dosent work in CELLs.

    why is like that ? what is the use of CLICK event then ?

Posting Permissions

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



Click Here to Expand Forum to Full Width