Пример #1
0
  /// <summary>ButtonAdd_Click().</summary>
  public void ButtonAdd_Click
  (
   Object sender, 
   EventArgs e
  )
  {
   int    dataRowCount     = -1;
   String exceptionMessage = null;
 
   try
   {
    UtilityDatabase.DataSetRowAdd
    (
     ref DataSetDataGrid,
     ref exceptionMessage,
     ref dataRowCount
    );
   }
   catch ( Exception exception )
   {
    exceptionMessage = exception.Message;
   }
   if ( exceptionMessage == null )
   {
    DataSourceBind();
    //DataGridURI.EditItemIndex = dataRowCount;
    SetFocus( DataGridURI );
   }
   else   	
   {
    Feedback = exceptionMessage;
   }   	
  }//public void ButtonAdd_Click()