Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello! Good morning ^^ first, i'm sorry for my English, i just wanted to ask if how will i code the delete button to determine the number of the row i wanted to delete in my DataGridview. for example , i clicked the row #3 and i click the delete, a yes/no msgbox will appear 'are you sure you want to delete row 3?' will said. and then if i click another the yes/no msgbox will ask if i'm sure i wanted to delete the number of row i had clicked.

thanks in advance :)
Posted
Comments
[no name] 30-Jun-13 22:43pm    
Well you would read the documentation and see if there might be someway to get that information like; "You can get the selected cells, rows, or columns from a DataGridView control by using the corresponding properties: SelectedCells, SelectedRows, and SelectedColumns." copied from http://msdn.microsoft.com/en-us/library/x8x9zk5a.aspx
Sergey Alexandrovich Kryukov 30-Jun-13 22:59pm    
TnTinMn 30-Jun-13 23:20pm    
+5E99999999999999999999999999999999999999 if I could.
justinetorres 30-Jun-13 23:38pm    
ouch! :)
uhmn well i guess i have a wrong approach to get the solution for my question,
this is the first time i use vb.net, and i apologize if my question comes to this like i'm getting solution not a suggestion or advice or whatever, btw i'd got the point and thank you.
Sergey Alexandrovich Kryukov 30-Jun-13 23:54pm    
You haven't done anything fundamentally wrong yet, but I'm very glad you got the point. Locate your problem more closely and provide enough information if you still have a problem, then we will gladly help you.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900