Hiding table row created programatically
i want to hide the rows which are displaying files...and it can be hidden if we display data in gridview...but here i m creating table and adding rows in that programatically ...so i dont have id for dynamically created rows...so i m not able to use javascript also for the same...can u give me any lead or clue...to hide the particular row...
Pravin MorePosted Nov 18, 2011, 7:42 AM
so you can write Linq query on your table created programatically.
write simple Linq query on table like below.....depending on value selected in combobox
string combovalue=combobox1.SelectedValue();
var result = (from DataRow trow in table.Rows select trow).Except(from DataRow trow1 in table.Rows where col1=combovalue select trow);
here Except() will hide the rows matching where condition .....so yoy can change where condition dynamically...
try it once n let me know...
Thanks,
Pravin.