Looking at his article in Applebbs Drag Change Table List width I want to implement in DataGrid in ASP.NET, because the HTML translated by DataGrid is Table to change
function MouseDownToResize (obj) {obj.mouseDownX = event.clientX; obj.pareneTdW = obj.parentElement.offsetWidth; obj.pareneTableW = theObjTable.offsetWidth; obj.setCapture ();} function MouseMoveToResize (obj) {if (obj!. mouseDownX) return false; var newWidth = obj.pareneTdW * 1 event.clientX * 1-obj.mouseDownX; if (newWidth> 0) {obj.parentElement.style.width = newWidth; theObjTable.style.width = obj.pareneTableW * 1 event.clientx * 1-obj.mousedownx;}} function mouseuptoreSize (obj) {obj.releasecapture (); obj.mousedownx = 0;}
script>
Background Code: private void HierarGrid1_ItemDataBound (object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) {if (e.Item.ItemType == ListItemType.Header) {for (int i = 0; i
Notes: the head is left