Convert the carriageway to Tab

xiaoxiao2021-03-06  13

// When you type in the control of the keydown event, it turns into Tab Public Void Tab (System.Web .UI.WebControls .WebControl WebControl) {WebControl.attributes .add ("onkeyDown", "if (Event.Keycode) == 13) Event.KeyCode = 9 ");

DataGrid page If you have an index when deleted?

Public void jumppage (system.web.ui.webcontrols.datagrid DG) {int tent_pageless; // Define page jump page number // If the current page is the last page IF (Dg.CurrentPageIndex == DG.PageCount-1) {// If there is only one page if (Dg.CurrentPageIndex == 0) {// delete the page stop in the current page DG.CurrentPageIndex = DG.PageCount-1;} else {// If the last page has only one record IF ((DG.Items.count% DG.PageSize == 1) || DG.PageSize == 1) {// After deleting the last page last record, the page should jump to the previous page int_pageless = 2;} Else // If the number of records in the last page is greater than 1, then stop in the current page {int_pageless = 1 after the last page is deleted,} Dg.currentPageIndex = DG.PageCount - int_pageless;}}}

转载请注明原文地址:https://www.9cbs.com/read-47159.html

New Post(0)