Ejemplo n.º 1
0
  /// <summary>DataSourceBind().</summary>
  public void DataSourceBind()
  {
   String                  exceptionMessage     =  null;
   String[]                primaryKey           =  null;
   DataTableCollection     dataTableCollection  =  null;
   DataColumn[][]          dataColumnPrimaryKey =  null;

   // Store the cookies received in the session state for future retrieval by this session.
   Session["DataSetDataGrid"] = DataSetDataGrid;

   DataGridURI.DataSource = DataSetDataGrid;
   DataGridURI.DataBind();
   
   UtilityDatabase.DataSetTablePrimaryKey
   (
    ref DataSetDataGrid,
    ref exceptionMessage,
    ref dataTableCollection,
    ref dataColumnPrimaryKey,
    ref primaryKey
   );

   DataGridURI.DataKeyField = primaryKey[0];
  }