how to redirect the page when the particular cell in the datagridview is double clikced
-
hello I am having datagridview with columns Description area rate and value. All the columns are datagridview textbox columns. the description column when clikced where we can enter the description and when the columns area,rate and value are double clikced then the page must redirect to another page. I tried this by the event CellDoubleClick but i can't get what i required Plz, help me in doing this.
-
hello I am having datagridview with columns Description area rate and value. All the columns are datagridview textbox columns. the description column when clikced where we can enter the description and when the columns area,rate and value are double clikced then the page must redirect to another page. I tried this by the event CellDoubleClick but i can't get what i required Plz, help me in doing this.
Anjani Poornima wrote:
I tried this by the event CellDoubleClick but i can't get what i required
What does this mean? What do you get? What have you tried?
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
hello I am having datagridview with columns Description area rate and value. All the columns are datagridview textbox columns. the description column when clikced where we can enter the description and when the columns area,rate and value are double clikced then the page must redirect to another page. I tried this by the event CellDoubleClick but i can't get what i required Plz, help me in doing this.
What is your problem excactly? If you don't know how to redirect, look here Response.Redirect()[^]
Anjani Poornima wrote:
I tried this by the event CellDoubleClick but i can't get what i required
Did you get any good data from the event as in what cell contained or from witch row was it?
-
Anjani Poornima wrote:
I tried this by the event CellDoubleClick but i can't get what i required
What does this mean? What do you get? What have you tried?
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
hello, I wrote the code for redirecting the page in celldoubleclick event. It make me redirect the page when the column is doubleclicked. But what i need is only when the column 'area' is doubleclicked it must redirect the page. Here i have to check the condition only when the column area is double clicked it must redirect the page. How to do this.What event i have to use. Plz, help me in doing this.
-
hello, I wrote the code for redirecting the page in celldoubleclick event. It make me redirect the page when the column is doubleclicked. But what i need is only when the column 'area' is doubleclicked it must redirect the page. Here i have to check the condition only when the column area is double clicked it must redirect the page. How to do this.What event i have to use. Plz, help me in doing this.
There are two DoubleClick events for a cell
CellDoubleClick
, which you have already used, andCellContentDoubleClick
. The DataGridView is very fussy about exactly where you click. If you double-click on the displayed value but are only handling theCellDoubleClick
event, nothing happens. Conversely, if you double-click in the cell, but not on the displayed value and you are only handling theCellContentDoubleClick
event, nothing happens then either. Set up a handler method for both:private void dataGridView1\_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { MessageBox.Show("Content DoubleClick"); } private void dataGridView1\_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { MessageBox.Show("Cell DoubleClick"); }
and experiment with the placement of your double-clicks.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”