Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

HTML controls inline with xyz.aspx.cs code how to get to them

Apr 10 2003 3:24 PM
All The technique I am trying to employ exposes my ignorance. I have a DataGrid control that I employ to display various content that comes from a database. I found the exercise intresting but kind of constraining .. the template for System.Web.UI.WebControls.DataGrid does not have some of the controls I would like. I have an update, delete and cancel template that works fine but does not give me some of the control I would like. I populated one of the columns with a checkbox via the very dubious rendering: // tn already has the data from db I want with a Link button binding tn = String.Format("{0}",tn,tid); dr[0] = tn; Now this "woks" in the sence that It does display the checkboxes next to the info I woul like to delete. It would be much faster and nicer for admins to use this design to mass delete instead of the one at a time delete (very slow .. very user invasive). .. but I simply do not know how I can crack which check boxes I want? Also I attempted to render: tn = String.Format("",tn,tid); This is worse nothing gets displayed (would have been nice to have that callback function .. == So I know I am doing "something" terribly wrong here. Please be gentle with your advice. At any rate how could I get a checkbox element into the datagrid and get teh server to grab the checked checkboxes .. such that I can do teh mass db record delete? All thought gratefully appreciated.

Answers (1)