CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2007
    Posts
    14

    double-click() event of dataGridView not fired sometimes..

    hi all,

    i m using a data grid view to diaplay some data from sql server...
    by setting its dataSourse property to a dataset 's table object programatically.......

    i have a requirement which i have handled in its double click event as follows..


    private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
    {


    int rowIndex = e.RowIndex;
    txtItem.Text = dataGridView1.Rows[rowIndex].Cells[0].Value.ToString() ;
    txtDescription.Text = dataGridView1.Rows[rowIndex].Cells[1].Value .ToString ();
    }


    but some times it is not fired at all....and sometimes it works properly......

    any suggestions are appreciated..........thx for even reading

    bye

  2. #2
    Join Date
    Nov 2006
    Location
    North Bend, WA
    Posts
    487

    Re: double-click() event of dataGridView not fired sometimes..

    Have you used Spy++ to see if the system is sending the click events to the window?

  3. #3
    Join Date
    May 2006
    Posts
    306

    Re: double-click() event of dataGridView not fired sometimes..

    ya that hapens to me too someitnes, try clicking multiple times, then it will register

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

Featured