(Original) Code Analysis - DataGrid implements self-amplified, radio, multiple choice

xiaoxiao2021-03-06  42

Http://blog.9cbs.net/lovecherry/archive/2005/02/25/301441.aspxhttp://blog.9cbs.net/lovecherry/archive/2005/02/25/301757.aspx last time, we This DataGrid implements functions such as adding, deleting, modifying, paging, dynamically modifying, and today analyze how to add self-amp, select, radio, and multi-selection. First look at the code that needs to be added on the previous basis: (1) Implementing the self-ample collection only needs to add a template column at the front desk, bind ItemIndex 1, you can <% # Container.itemindex 1%> (2) Implementing a radio based on this column with a Radio < ItemTemplate> <% # container.itemindex 1%>

It has not been completed until now, although the selected line number has been saved in htmlinputhidden, but it also needs to make this Radio as the selected state, modify Page_Load () for Private Void Page_Load (Object Sender, System.EventArgs E) {String JS = ""; JS = "