Hi
with the DataGrid control in ASP .NET , is there any property we can get the index of row clicked ?
If you have standard events like below , you can get it
private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
int rowNum = e.Item.ItemIndex;
}
but what if i want to use some other function say
private void userdefinedfunc()
{
}
how do i get the index of selected row when i dont have DataGridItemEventArgs object ?
with the DataGrid control in ASP .NET , is there any property we can get the index of row clicked ?
If you have standard events like below , you can get it
private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
int rowNum = e.Item.ItemIndex;
}
but what if i want to use some other function say
private void userdefinedfunc()
{
}
how do i get the index of selected row when i dont have DataGridItemEventArgs object ?