Click here to Skip to main content
15,903,030 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Give me a suggestion for this issue...

I'm using two tables in same form here i using a hyperlink option named VIEW in first table.

when i click this VIEW link i need to display the below table , which i put Visible=false.
Posted
Updated 24-Aug-11 18:59pm
v2
Comments
Sunasara Imdadhusen 25-Aug-11 0:59am    
Your first table contains View in every column? and every View click you need to show second table? please provide enough details!

If the type of your table is HTMLTable[^], you can easily do this on the code behind because of the Visible property. As for the hyperlink, I suggest you use LinkButton[^] instead because it has a click event where you will be able to set the code to display/hide the table.
 
Share this answer
 
Comments
rajah rajah 25-Aug-11 1:10am    
thanks for reply.I'm not going to use only UI for sample demo . so i need how can i call a table using some other like linkbutton,which i implemented in another table
walterhevedeich 25-Aug-11 1:36am    
What I provided will only work if you are using server controls. If your table and hyperlink are not server controls, you might want to explore Javascript for this scenario.
on DataGridView1_CellClick event you can check the e.ColumnIndex if it is hyperlink column then make Gridview2.Visible=true
 
Share this answer
 
I am a rookie, and not sure if i am telling correct or not, but i want to answer you little logically.....

See you have two tables like table1 and table2...... and supposingly you already set table2.visible = false;

You should go to the event handler of your VIEW hyperlink in table1, like for eg: button1_click

and write there.....

table2.visible = true;


I properly don't know about keywords.... so you should figure out themselves.... Thanks for hearing me....

I hope this might help you :)
 
Share this answer
 
v3

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