Skip to content

Replies

0
Milko Venkov
Milko Venkov answered on Jun 8, 2017 12:59 PM

Hello Kim,

If I understand you correctly you have created an User Control and need to embed it in UltraGrid’s cell. Did you try to achieve this via UltraControlContainerEditor? This component provides you with the ability to embed non-editor controls in any Infragistics control that supports embeddable editors, like UltraGrid.

For additional information about how to embed any control into UltraGrid cell you may check the following article in our online documentation – “Embed Any Control within WinGrid Cell using UltraControlContainerEditor Component”.

Please let me know if this solves your issue or if you have any additional questions on this matter.

0
Milko Venkov
Milko Venkov answered on May 30, 2017 8:42 PM

Hello Shaolin,

This issue comes from the fact that UltraDataSource has to notify its binding manager any time something changes in the data structure. This involves notifying recursively all parent bands. And yes, the time to finish this doubles with each level of child bands added.

What you can do, is to turn of this notifications by setting UseBindingSource property of UltraDataSource to false. With this I was able to add child band at 20th level for less than a half second.

Please let me know if you need any further assistance with this.

0
Milko Venkov
Milko Venkov answered on May 30, 2017 11:21 AM

Hello Shaolin,

I was able to reproduce this behavior in a small sample project. I will discuss this with our more senior developers to see if this is an issue in our control, or if this is expected behavior. Actually, the time to add child bands up to sixth or seventh level of child bands depth is less than 200 – 300 ms in my sample. Therefore, the question here is what is the biggest child band depth you may reach?

I will get back to you as soon as I have more information about this issue.

0
Milko Venkov
Milko Venkov answered on May 25, 2017 9:46 AM

Hello Shaolin,

To investigate this I will need some more information about your issue:

  • How do you add child bands to your UltraGrid? Is it design time process or is it runtime? Can you give me the exact steps or code you are using?
  • What type of data source your grid is bound to? Is it DataTable, DataSet, some collection, or something else?

Looking forward to your reply.

0
Milko Venkov
Milko Venkov answered on Apr 6, 2017 8:00 AM

Hello Grnd,

Yes, you are correct. The size of the scrollbar depends on the number of visible rows. And there is no way to control this by setting any public property or call a method of the grid. What I can suggest you, to synchronize the scrolling of the grids is to try to set the FirstRow of your RowScrollRegions to the row you need to be at the top of the visible rows.

Please let me know if this solves your issue.

0
Milko Venkov
Milko Venkov answered on Mar 24, 2017 12:48 PM

Hello Dave,

Please find bellow answers to your questions:

  • First thing, Dim dateFrom = e.Cell.Row.GetCellValue("Date From") gives me an error "Value of type 'String' cannot be converted to Infragistics.Win.UltraWinGrid.UltraWinGridColumn"GetCellValue method of UltraGridRow has two overloads, so you may provide either column key or UltraGridColumn itself. The only reason I can see to get such error is if you are using some old version of Infragistics for Windows Forms. The overload accepting column’s key was added back in 2008. Therefore, can you let me know which is the version you are using?
  • Secondly, even with e.Layout.Override.SupportDataErrorInfo = SupportDataErrorInfo.RowsOnly in the InitializeLayout code of the grid, I'm still getting "'DataErrorInfo' is not a member of 'Infragistics.Win.UltraWinGrid.UltraWinGridRow'" on the e.Cell.Row.DataErrorInfo lines – again support for DataErrorInfo was added in version 13.1 of Infragistics for Windows Forms. Therefore, if you are using some older version I can only suggest you to upgrade to more recent one.

Please let me know if any additional questions arise.

0
Milko Venkov
Milko Venkov answered on Mar 24, 2017 7:59 AM

Hello Joe,

We have investigated this further. It seems that there is an issue in the way you are calling Save method. You are excluding the last byte, i.e. you have:

loadStream.Write(bytFile, 0, bytFile.Length - 1);

However, the last parameter is the count so it should be:

loadStream.Write(bytFile, 0, bytFile.Length);

Please let me know if you need any further assistance.