-
March 9th, 2007, 07:32 PM
#1
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
-
March 9th, 2007, 08:01 PM
#2
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?
-
March 9th, 2007, 08:32 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|