C
CreativeMind
hi,
can u help me plz,
i have a remove link , when i click the remove link of first record,
it should remove the clicked record. it is doing well but when i
refresh , every time, this event is triggered. and every time, it
removes the first record. means, i have 10 items, then 10 times
refresh makes it empty.. how can i stop that.
private void dgPropertyImages_DeleteCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
string fileNameToRemove = this.dtImageFiles.Rows[e.Item.ItemIndex]
[2].ToString();
this.dtImageFiles.Rows.RemoveAt(e.Item.ItemIndex);
}
thx
can u help me plz,
i have a remove link , when i click the remove link of first record,
it should remove the clicked record. it is doing well but when i
refresh , every time, this event is triggered. and every time, it
removes the first record. means, i have 10 items, then 10 times
refresh makes it empty.. how can i stop that.
private void dgPropertyImages_DeleteCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
string fileNameToRemove = this.dtImageFiles.Rows[e.Item.ItemIndex]
[2].ToString();
this.dtImageFiles.Rows.RemoveAt(e.Item.ItemIndex);
}
thx