Datagrid row select

G

Guest

Hi

I wanted to create functionality to display a message box to the user if a row has not been selected from a datagrid

i.e i want to provide the user with a delete row function

If the user selects a row and presses a delete button, a message box is displayed to the user stating that the selected row will be removed from the datagrid.
If however the user doesnt select a row, i want a message box stating that all the rows will be deleted from the datagird

What im confused on is how i write code to check if no row has been selected. Can anyone plz help me with this

Many thx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top