How to load CSV data in C# DataGridView (Code)

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • This video shows how we can write C# code to load CSV data in DataGridView Control.
    Credits:
    Music: CZcams Music.

Komentáře • 9

  • @dyantrimarchdianasari4885

    thank you Gautam Mokal

  • @kavyahulyal4630
    @kavyahulyal4630 Před 3 lety

    thank you

  • @kaveenmadusanka8461
    @kaveenmadusanka8461 Před 3 lety

    Thanks

  • @labiga5919
    @labiga5919 Před 2 lety

    Hello, many thanks for this code that works very well. Btw I am not more able to filter by textbox. I can filter easily when I fill Datagridview from SQL database by using dgv_BindingSource.Filter = string.Format("name LIKE '%{0}%'", Textbox.Text); but if I fill datagridview from a csv file using this code I dont know a correct way to filter by textbox_TextChanged event....could someone help me pls on this? many thanks

  • @anushripatil1059
    @anushripatil1059 Před 3 lety

    Hey nice content, I want to asked how to apply where condition in this to display only particular data from csv file

    • @gautammokal
      @gautammokal  Před 3 lety +1

      I think you should import CSV data into C# objects and use LINQ to select only particular data and use as data source and bind it to data grid view. Here is the video to import CSV into objects.
      czcams.com/video/UsQ4hYw1TMQ/video.html
      Thanks for watching ...

    • @anushripatil1059
      @anushripatil1059 Před 3 lety

      @@gautammokal Thank you 👍

    • @anushripatil1059
      @anushripatil1059 Před 3 lety

      Hey Gautam can you suggest some code in given video code..to filter data by date using date picker.. please it will very helpful for me

  • @jesicatorresperez2346
    @jesicatorresperez2346 Před 3 lety

    codigo fuente