Click here to Skip to main content
15,896,912 members

Comments by Mehdi_S (Top 6 by date)

Mehdi_S 14-Oct-13 9:08am View    
Well, that's what I did. but I'm posting this question to have better ideas :)
Mehdi_S 11-Oct-13 10:09am View    
yeah but imagine you have like 1000 rows and 300 columns to merge or bigger. the lopp treating one by one would consume time
Mehdi_S 11-Oct-13 9:07am View    
Yeah, I have explored that solution but what if I don't need a key? I just need to add columns even if I will end up missing rows?
Mehdi_S 7-Oct-13 5:36am View    
yeah That's what I used for the example above but my need is something with LINQ that should be similar to:
(from DataRow r in dtableInput.Rows
(from DataCell c (or whatever) in r.Cells
where c.Value.Contains("Keyword"))).select c).ToArray();

This kind of query does not work actually. The only solution I had is to query the rows with linq and then query the cells for each selected data row. I wanted to optimize that :)
Mehdi_S 27-Aug-13 7:02am View    
using just the text extension option is not really a good idea. I'm pretty sure that there is nothing missing but who knows, nothing is perfect.