Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI all,

I getting an issue here...i have created on table table and in that table i m adding a row using table.Row.Add(rowname)....now in that row im adding cells using for loop...Now issue is that if i want to hide any of the row by checking the condition of cell.text.....what to do can anyone help??

Any help would be appriciated....

Note:Table is creating dynamically and have to hide or show on checkbox's checked or unchecked condition...
Posted

1 solution

Use a table in the background to hold your "hidden" rows:

C#
hiddenRowsTable.Rows.Add(table.Rows.Remove());
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900