Topological quantum physics - spin statistics

Click For Summary
SUMMARY

This discussion focuses on hiding selected images in a GridView using ASP.NET. The original approach attempted to set the visibility of the entire row based on a data condition, but it was ineffective. The solution provided involves adding a CSS class to the specific image control when the condition is met, allowing for more precise control over visibility. The recommended CSS class, ".hidden", sets the display property to none, effectively hiding the image.

PREREQUISITES
  • Understanding of ASP.NET GridView control
  • Familiarity with C# programming language
  • Basic knowledge of CSS for styling
  • Experience with DataRowView in data binding
NEXT STEPS
  • Implement CSS classes for dynamic visibility in ASP.NET applications
  • Explore advanced data binding techniques in ASP.NET GridView
  • Learn about event handling in ASP.NET, specifically OnRowDataBound
  • Investigate performance optimization for large datasets in GridView
USEFUL FOR

Web developers, ASP.NET programmers, and anyone looking to enhance user interface interactions in web applications using GridView controls.

Replusz
Messages
141
Reaction score
14
TL;DR
"In the left picture with the loop, we have two identical particles that change places. "
I don't understand why this is true. If I understood correctly, those pictures show a (one!) thick piece of string forming a loop and then pulled. How come particles are exchanged?
From: (page 13)
http://www-thphys.physics.ox.ac.uk/people/SteveSimon/topological2016/TopoBook.pdf

Any help is greatly appreciated! Thank you! :)
1581804447574.png
 
Physics news on Phys.org
Q: How to hide the selected images in gridviewI am trying to hide the selected images from the gridview.I have tried this, but it is not working.<code>protected void OnRowDataBound(object sender, GridViewRowEventArgs e){ if (e.Row.RowType == DataControlRowType.DataRow) { DataRowView drv = e.Row.DataItem as DataRowView; if (drv["ImageSelect"].ToString() == "True") { e.Row.Visible = false; } }}</code>Please let me know how to hide the imagesA:You can just add a class to the selected images and use CSS to hide them.<code>protected void OnRowDataBound(object sender, GridViewRowEventArgs e){ if (e.Row.RowType == DataControlRowType.DataRow) { DataRowView drv = e.Row.DataItem as DataRowView; HtmlImage image = e.Row.FindControl("imageControlID") as HtmlImage; if (drv["ImageSelect"].ToString() == "True") { image.Attributes["class"] += " hidden"; } }}</code>Then, add the following style to your css file:<code>.hidden { display: none;}</code>
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
602
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
899