AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 25.07.2012, 21:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
sashanazarov: If you forgot to fix DataSource property on a grid,...
Источник: http://sashanazarov.blogspot.com/201...atasource.html
==============

... although its child controls are set up properly, then your form may behave in a weird way.

For example, we have a form with 2 linked datasources (SalesTable and SalesLine) and 2 grids accordingly:


The second grid, SalesLineGrid, has DataSource property set to SalesTable. That value was set by default at the moment the grid control was created. You can also see 3 controls in the SalesLineGrid, but their DataSource properties are set to SalesLine, so they are fine.

Now, if we open the form and switch between sales orders back and forth, the bottom grid with sales order lines will not work properly:


As you can see, the cursor position in the second grid changes in sync with that of the first grid, there are a lot of "empty" sales order lines, and, finally, the rendered sales order lines are actually wrong.

Going back to the form in the AOT and setting the SaleLineGrid datasource property to SalesLine will fix the issue:




Источник: http://sashanazarov.blogspot.com/201...atasource.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
ax-erp: Temporary table in datasource of grid Blog bot DAX Blogs 0 22.05.2012 13:11
Сменить DataSource у Grid Андрей К. DAX: Программирование 19 06.02.2008 17:34
неопределенный (или common?) datasource grid'а andy239 DAX: Программирование 7 19.07.2006 17:05
Как при переборе DataSource не перерисовывать Grid korvin DAX: Программирование 6 17.02.2006 11:46
DataSource, Table и Grid. Yuri Safronov DAX: Программирование 3 05.09.2002 15:04

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 04:09.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.