Click here to Skip to main content
16,017,200 members

Comments by Member 12197595 (Top 11 by date)

Member 12197595 1-Feb-16 23:32pm View    
Thank you sir.. But my drop down list populate all country name as well as state name using this code..
Then I want to display which country is user selected ..This is not working in my code.. I cant access what is user selected.. Always it shows -1 . (When user select India, drCurrentRow["Country"] = ddl_country.Text; it show -1 not India.. and for all other country )
Member 12197595 17-Jan-16 22:45pm View    
show error in this line
dgv_product.CellDoubleClick -= new DataGridViewCellEventHandler(dgv_product.CellDoubleClick);

error is,
The event 'System.Windows.Forms.DataGridView.CellDoubleClick' can only appear on the left hand side of += or -=


When form_2 is activate by clicking the button. then I want to disable the event..
Member 12197595 17-Jan-16 22:39pm View    
The event 'System.Windows.Forms.DataGridView.CellDoubleClick' can only appear on the left hand side of += or -=
this is the error..
Member 12197595 16-Jan-16 6:25am View    
Thank you sir. But I need the code for disable the datagridview celldoubleclick event.
How can I do it?

my code show error in this line
dgv_product.CellDoubleClick -= new DataGridViewCellEventHandler(dgv_product.CellDoubleClick);
Member 12197595 11-Jan-16 4:12am View    
Thank you sir. But these all about how can make a auto complete text box. My first cell is already an auto complete cell. My requirement is, the auto complete text box contains number of data. when cursor move upward or downward in the auto complete text box(here register.no) the next cell automatically shown student name. For this which event is used?