/// <summary>
 /// Ustawia prawidłowe wartości komórek.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">CellFormattingEventArgs.</param>
 private void CarProductCollectionGrid_CellFormatting(object sender, CellFormattingEventArgs e)
 {
     if ((CarProductCollectionGrid.Rows[e.RowIndex].DataBoundItem != null) &&
         (CarProductCollectionGrid.Columns[e.ColumnIndex].FieldName.Contains(".")))
     {
         e.CellElement.Value = PropertyBindingManager.BindProperty(
             CarProductCollectionGrid.Rows[e.RowIndex].DataBoundItem,
             CarProductCollectionGrid.Columns[e.ColumnIndex].FieldName
             );
     }
 }
Exemple #2
0
 /// <summary>
 /// Ustawia komórki grida.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">CellFormattingEventArgs.</param>
 private void CarServicesCarGridView_CellFormatting(object sender, CellFormattingEventArgs e)
 {
     if (e.CellElement.Value != null)
     {
         if ((CarServicesCarGridView.Rows[e.RowIndex].DataBoundItem != null) &&
             (CarServicesCarGridView.Columns[e.ColumnIndex].FieldName.Contains(".")))
         {
             e.CellElement.Value = PropertyBindingManager.BindProperty(
                 CarServicesCarGridView.Rows[e.RowIndex].DataBoundItem,
                 CarServicesCarGridView.Columns[e.ColumnIndex].FieldName
                 );
         }
     }
 }