delete a list item

Gidijala.Dinesh
Posted by Gidijala.Dinesh under ASP.NET category on | Points: 40 | Views : 410
we can delete a list item by the single step using for loop



for(i=0;list.count-i>i;i++)

{



if(list[i].name=="")

list.RemoveAt(i);



}

Comments or Responses

Login to post response