DataGrid.DataItem not working

break15

New Member
Here is the context<BR><BR>When my user want to delete a row he click on a linkbutton.<BR>It do a postback calling evDeleteRow<BR>In this event, I need to get the name of the row<BR>Here is what i found was supposed to work:<BR>e is a DataGridCommandEventArgs <BR>TheRowName is a field in a row of the DataSource of the DataGrid<BR><BR>What I need = e.Item.DataItem("TheRowName")<BR><BR>Unfortunatly, iget a not set to an instance type error when i do so.<BR><BR>Can anyone help my on this ?
 
Back
Top