Best thing to do here is to use DTOs (Data Transfer Objects). Then use a collection (i.e. List <>). Once this is done, use StringBuilder. From there, you can insert commas in between fields defined from your DTOs through a loop (i.e. foreach).
On Jan 28, 3:15 pm, Sruthi <[email protected]> wrote: > Hi.. > > i need to concatenate the gridview rows to a single string > if the gridview count is more than 100 then > i need to perform the concatenation as 100 comma seperated and the > next has to be carried over to the next string > say if the count of gridview is 1000 then > i need to concatenate the string as > string1= 1to 100(Ex: a,b,c....) then > string2=101-200 > string3= 201-300… and so on... > > any idea on performing this... > > Thanks in advance.....
