C# ListView - ADD,UPDATE,DELETE,CLEAR

Sdílet
Vložit
  • čas přidán 15. 08. 2015
  • ProgrammingWizards Channel c# ListViews:c# listview tutorial,add row,add column,database,image,add items,listviewitem,columns,sort,selected item,data source,column width,
    checkbox,subitems,add columns,alternate row color,autoresize,header,binding,details,
    DESCRIPTIONS
    ListViews are obviously used to display list data in C#.Unlike ListBox,ListViews are very robust.You can easily have a multicolumn ListView with headers and images and text just like you can effortlessly in DataGridView.
    Today we shall look at how to add items to listview dynamically from textboxes,update those row items,delete a particular row and of course clear the whole rows.\
    Cheers Guys!!

Komentáře • 53

  • @killar222
    @killar222 Před 6 lety

    Another winner - thanks again buddy - really helping me out today!

  • @rohanverma1230
    @rohanverma1230 Před 4 lety +1

    Thanks bro You just solved the problem I was facing since last 2 days

  • @princeneo1727
    @princeneo1727 Před 4 lety

    Thank you man.. you just saved me from failing in assignment

  • @justicecraft5972
    @justicecraft5972 Před 7 lety

    Thanks very much. Simple, clear and to-the-point.

  • @VillagerLifeCraft
    @VillagerLifeCraft Před 7 lety

    very useful tutorial keep it up ! i'm gonna support you

  • @chrisbaumann3413
    @chrisbaumann3413 Před 2 lety

    Thank you, very clear and works well! Helped me out!! Now I can figure out how to wire the list changes to me SQL database.

  • @braum8507
    @braum8507 Před 7 lety

    thanks for the video! its help me alot

  • @agoroy
    @agoroy Před 7 lety

    thanks...now i learn listview ...thanks bro

  • @krushpatel5545
    @krushpatel5545 Před 8 lety +2

    superb bro ... i succeded because of you !! god bless

  • @tyronwilliam9417
    @tyronwilliam9417 Před 8 lety

    Thank you so muchhhhhhhhhhh, love this, very helpful

  • @salmamontaser6657
    @salmamontaser6657 Před 7 lety

    thank youuuuu alot it's helps me in my project

  • @NguyenLuan-xn4ym
    @NguyenLuan-xn4ym Před 3 lety

    I done it finish, Thanks a lot....

  • @marcoaurelio9527
    @marcoaurelio9527 Před 4 lety

    Obrigado pela ajuda!

  • @kaifikhan9212
    @kaifikhan9212 Před 7 lety

    greate bro......learn a lot :) thank you so much

  • @jyl9299
    @jyl9299 Před 7 lety

    hmm soccer fan huh thanks for these videos!

  • @TheAbdorito
    @TheAbdorito Před 7 lety

    thanks for the help

  • @jyl9299
    @jyl9299 Před 7 lety

    Is there any way to put things in listbox from listview? like 0 1 2 in list box like (0,1,2);

  • @nandini-ec5xl
    @nandini-ec5xl Před 6 lety

    tq sir it helped me

  • @SirEchosVlog
    @SirEchosVlog Před rokem

    do you have tutorial about print receipt using listview?

  • @LautHelmchen
    @LautHelmchen Před 8 lety +1

    Cool, Thanks... but there is one Problem:
    But what can i do, when "ListViewItem" doesn't have a constructore who recieve the Arguments? The Struggle is at the ponit of
    "ListViewItem item = new ListviewItem (row);", with the error message: "ListViewItem dosen't contain any constructore, who reciefe 1 argument"

    • @jkjk354
      @jkjk354 Před 8 lety

      im getting the same error, did you ever figure out what is wrong?

    • @LautHelmchen
      @LautHelmchen Před 8 lety

      Yes, you have to look up whether it's a Form or a WPF-Application. ListViewItem works only in forms. Else you have to use the .ItemsSource.
      So you use the name of the List in the mainwindow (here: listView) and set it equal to a list (here: Datalist) you want to add.
      Excample:
      List Datalist;
      private void name ()
      {
      Datalist.Add(Data);
      listView.ItemsSource = null;
      listView.ItemsSource = Datalist;
      }
      Its much simpler with Forms and ListViewItem.

    • @jkjk354
      @jkjk354 Před 8 lety

      yeah i just realized he was using Form haha, thanks for the help

  • @salihashafiq5885
    @salihashafiq5885 Před 8 lety +2

    Its help me a lot....but how to save it in list after adding??????????anyone help plz........

  • @omarfarooq3183
    @omarfarooq3183 Před 7 lety

    thanks a lot

  • @BustaJunix
    @BustaJunix Před 2 lety

    Is it possible to save the data from listview to Mysql Database?

  • @systemfails
    @systemfails Před 6 lety

    superb

  • @thanhthaiangtran5175
    @thanhthaiangtran5175 Před 2 lety

    sorry sir, now I want to delete 2 , 3 or 4 elements at once, how to do this?

  • @younessouachao2305
    @younessouachao2305 Před 5 lety

    how can i insert a row with different data type ?

  • @miroslavklena2665
    @miroslavklena2665 Před 8 lety

    Super Thanx

  • @ghelobuen2393
    @ghelobuen2393 Před 6 lety

    did you used database here?

  • @azizmobarak8818
    @azizmobarak8818 Před 6 lety

    THANKS

  • @user-td7dz9ut6g
    @user-td7dz9ut6g Před 7 lety

    why i can't select on listview?

  • @zerosandones7547
    @zerosandones7547 Před 5 lety

    how to do this with .mdf database?

  • @gerardph6595
    @gerardph6595 Před 8 lety

    why in updating when i update the selected item become delete?

  • @roelaodevilas5953
    @roelaodevilas5953 Před 7 lety

    How did you run it without database?

    • @ProgrammingWizards
      @ProgrammingWizards  Před 7 lety

      Hi Ella, it stores data temporarily in memory, not in database.

    • @ProgrammingWizards
      @ProgrammingWizards  Před 7 lety

      Here is one with MS Access database: czcams.com/video/3IVTubZsEd4/video.html

  • @ahmetozkurt953
    @ahmetozkurt953 Před 7 lety

    Hello;
    You also wish the Project File

  • @atwa3794
    @atwa3794 Před 5 lety +1

    github repo please!

  • @mohamedsekkas9265
    @mohamedsekkas9265 Před 7 lety

    *u are porfessional*