Exemplo n.º 1
0
 private void GridViewExtensionPoints_CustomDrawCell(object sender, RowCellCustomDrawEventArgs e)
 {
     if (e.Column.FieldName == "Name")
     {
         var item     = GridViewExtensionPoints.GetDataRow(e.RowHandle);
         var typeName = item.Field <string>("TypeName");
         e.DisplayText = typeName.ToDynamic().Name;
     }
 }
Exemplo n.º 2
0
        public void ExtensionPointFocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            var focusedRow = GridViewExtensionPoints.GetFocusedDataRow();

            if (focusedRow != null)
            {
                var typeName = focusedRow.Field <string>("TypeName");
                _selectedExtensionPoint = typeName.ToDynamic();
            }
            else
            {
                _selectedExtensionPoint = null;
            }
        }