listview

display in listview without repetitiion

Page 1 of 1

4 Replies - 1476 Views - Last Post: 25 May 2009 - 11:55 PM Rate Topic: -----

#1 anirai  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 40
  • Joined: 14-May 09

listview

Posted 25 May 2009 - 11:28 PM

hi...i have a listview ..it displays records when a button is clicked..when i click the same button again then the records is shown again with the previous data...how can i not repeat the data in listview to display....it keeps on adding...
thanks in advance
Is This A Good Question/Topic? 0
  • +

Replies To: listview

#2 noorahmad  Icon User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Re: listview

Posted 25 May 2009 - 11:33 PM

use this code before filling ListView on btnClick Event
ListView1.Items.Clear()

Was This Post Helpful? 0
  • +
  • -

#3 anirai  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 40
  • Joined: 14-May 09

Re: listview

Posted 25 May 2009 - 11:40 PM

i used that already..but keeps on adding every time i click button..
Was This Post Helpful? 0
  • +
  • -

#4 anirai  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 40
  • Joined: 14-May 09

Re: listview

Posted 25 May 2009 - 11:47 PM

ahhhhh..ok now it's done..i was being stupid for a while...just a simple mistake...thanks nways
Was This Post Helpful? 0
  • +
  • -

#5 noorahmad  Icon User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Re: listview

Posted 25 May 2009 - 11:55 PM

you welcome
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1