deleting row

kulandaivel_mca

Newcomer
Joined
Jan 26, 2009
Messages
5
Location
INDIA
now, I want to delete one record on datagrid when I checked checkbox.
there is a checkbox on datagrid.
for example; if I checked checkbox on second row. The second row will deleted.(button click event)


how can i do this...
 
now, I want to delete one record on datagrid when I checked checkbox.
there is a checkbox on datagrid.
for example; if I checked checkbox on second row. The second row will deleted.(button click event)


how can i do this...

adjust to suit like checkbox1 = second row checkbox

Code:
{
    if (CheckBox1.Checked == true) {
    }
    
    //put code here
    
    else {
        
        Interaction.MsgBox("message");
    }
    
}
 
i cannot understand this line...



adjust to suit like checkbox1 = second row checkbox

it just means change the name of checkbox1 to whatever you have your second row checkbox named.if it is for example srcbox then you would have it like this
Code:
{
    if (srcbox.Checked == true) {
    }
    
    //put code here
    
    else {
        
        Interaction.MsgBox("message");
    }
    
}
 
Back
Top