SelectAllDataset() public method

public SelectAllDataset ( ) : DataSet
return System.Data.DataSet
Ejemplo n.º 1
0
 protected void LoadServiceMethods()
 {
     try
     {
         serviceMethods.CompanyId             = SessionHandler.CurrentCompanyId;
         dsServiceMethods                     = serviceMethods.SelectAllDataset();
         dsServiceMethods.Tables[0].TableName = "ServiceMethods";
         ((GridViewDataComboBoxColumn)gvAdditionalService.Columns["ServiceMethodID"]).PropertiesComboBox.DataSource = dsServiceMethods.Tables[0];
     }
     catch (System.Exception)
     {
     }
 }
        protected void LoadServiceMethods()
        {
            try
            {
                serviceMethods.CompanyId = SessionHandler.CurrentCompanyId;
                dsData = serviceMethods.SelectAllDataset();
                gvServiceMethods.DataSource = dsData.Tables[0];

                dsData.Tables[0].PrimaryKey = new DataColumn[] { dsData.Tables[0].Columns["ServiceMethodID"] };
                Session[Constants.SESSION_SERVICEMETHODS] = dsData;
            }
            catch (System.Exception)
            {
            }
        }