hi,

i have agridview in desktop application, i fill it with data using dataset, how can i chose arow from gridview and make right click on that cell then do search for that info i chosed from gridview?

Best Regards,
IT_Techno

Beside a ContextMenu, you could make use of the following events:

 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
           // this will only work if the cell has content in it
           // use  e.ColumnIndex and e.RowIndex determine the cell clicked

        }

        private void dataGridView1_MouseClick(object sender, MouseEventArgs e)
        {
            // use if (e.Button == System.Windows.Forms.MouseButtons.Right) { your code here...

        }

        private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
        {
            // This event has e.Button, e.ColumnIndex and e.RowIndex so this is what I should use

        }

thanks for every one, you helped me :), ihave used ContexMenu and it's work

This question has already been answered. Start a new discussion instead.