c# - File contents filtering -
i'm trying develop application take data datagrid , based on drop down menu choice return csv file selected client . code shown below , links previous question posted howeever still getting no values , need sort out i'm wondering if can either see i'm going wrong or else provide alternatives //master inventory export private void exportclass_click(object sender, eventargs e) { stringbuilder str = new stringbuilder(); objsqlcommands2 = new sqlcommands("masterinventory", "clientname"); string strstring = str.tostring(); string filepath = txtsaveshareclass.text.tostring(); str.append("isin ,fundname,status,share ccy,benchmark,nav freq,classcode,simulation,hedged,fundccy"); stringmanipulation sm = new stringmanipulation(); foreach (datarow dr in this.calcdataset.masterinventory) { foreach (object field in dr.itemarray) { str