Sujeet Raman

Sujeet Raman

  • 864
  • 927
  • 354.3k

how to get each 9 values from a list and add to data table row?

Aug 6 2021 8:51 PM

Hi,

i have a  c# list having 1000 data i need to add each 9 values with comma  and quotes to table.Rows.Add(1, 2, "M", "M", "M", "M", "M", "M", "M") how can i do that? and my list staring index value is " " how can i remove ?(its not a null "   " is not going when i remove).

need to remove index 0 and take each 9 record and add  like

 table.Rows.Add(1, 2, "M", "M", "M", "M", "M", "M", "M")


Answers (2)