Change DataGrid Specific Unit Properties

xiaoxiao2021-03-06  45

calendar.aspx [.cs] Code: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI Using system.web.ui.webcontrols; using system.web.ui.htmlControls; using system.data.sqlclient; Namespace Pu1_ERP.Practice {///

/// Calendar1 summary. /// public class calendar1: System.Web.UI.Page {protected System.Web.UI.WebControls.TextBox My_TBox; protected System.Web.UI.WebControls.Button My_Btn; protected System.Web.UI. WebControls.Label My_Lab; protected System.Web.UI.WebControls.DataGrid myDataGrid; private void Page_Load (object sender, System.EventArgs e) {// Put user code to initialize the page here if (IsPostBack!) {My_TBox.Text = System.datetime.now.tostring ("YYYY / MM / DD"); bindgrid ();}} private void bindgrid ()} private void bindgrid ()} private void bindGrid ()} private void bind = my_tbox.text.trim (); Practice Pt = new Practice () DataSet DS = New DataSet (); DS = Pt.calendar (SDT); mydatagrid.dataSource = ds; mydatagrid.databind ();} catch {response.write ("