Subject |
Author |
Date |
|
Alexander Kaay
|
Aug 20, 2010 - 10:11 AM
|
Greetings, Elegant Grid 3.7 Unbound Grid appears to be reliably producing exceptions under the following circumstances: - scrolling is in progress (mouse button down and moving) - timer expires to rebuild the table contents, which removes all rows and adds all new ones (same thread as the message pump) Stack trace: System.ArgumentOutOfRangeException occurred
Message=Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
ParamName=index
Source=mscorlib
StackTrace:
at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at Elegant.Ui.Grid.RenderableCollection.get_Item(Int32 index)
at Elegant.Ui.Grid.UnboundContentRenderingManager.OnAddItemToTopComplete()
at Elegant.Ui.Grid.GridControlBase.OnAddItemToTopComplete()
at Elegant.Ui.Grid.ScrollableByItemControl.AdjustScrollBars()
at Elegant.Ui.Grid.ScrollableByItemControl.OnVerticalScrollBarMaximumChanged()
at Elegant.Ui.Grid.SelectableByItemControl.OnVerticalScrollBarMaximumChanged()
at Elegant.Ui.Grid.ScrollableControl.set_VerticalScrollBarMaximum(Int32 value)
at Elegant.Ui.Grid.UnboundContentRenderingManager.RebuildRenderingList()
at Elegant.Ui.Grid.UnboundContentRenderingManager.ProcessUnboundRowAddition(Row row)
at Elegant.Ui.Grid.UnboundContentRenderingManager.ProcessUboundRowCollectionChange(CollectionChangeEventArgs e)
at Elegant.Ui.Grid.UnboundContentRenderingManager.UnboundRows_CollectionChanged(Object sender, CollectionChangeEventArgs e)
at Elegant.Ui.Grid.CollectionWithEvents.OnCollectionChanged(CollectionChangeEventArgs e)
at Elegant.Ui.Grid.CollectionWithEvents.OnInsertComplete(Int32 index, Object value)
at Elegant.Ui.Grid.ObjectAssociatedWithGridCollection.OnInsertComplete(Int32 index, Object value)
at Elegant.Ui.Grid.RenderableCollection.OnInsertComplete(Int32 index, Object value)
at System.Collections.CollectionBase.System.Collections.IList.Insert(Int32 index, Object value)
at Elegant.Ui.Grid.RowCollection.Add(Row value)
at AVue.FCassetteBrowser.NestAdd(CPNest ANest)
InnerException:
I am not sure if this makes any difference, but the message loop for the windows is NOT running on main application thread. I tried a few workarounds, but none are too effective besides tracking scrollbar mouse events and that’s not as easy as may first appear. Suggestions? -A
|
|
Alexander Kaay
|
Aug 21, 2010 - 10:00 AM
|
Here is another exception, maybe helpful:
System.ArgumentOutOfRangeException occurred
Message=Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
ParamName=index
Source=mscorlib
StackTrace:
at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at Elegant.Ui.Grid.RenderableCollection.get_Item(Int32 index)
at Elegant.Ui.Grid.UnboundContentRenderingManager.OnRemoveItemFromTopComplete()
at Elegant.Ui.Grid.GridControlBase.OnRemoveItemFromTopComplete()
at Elegant.Ui.Grid.ScrollableByItemControl.OnScrollBarValueChanged(ScrollBarOrientation scrollBarOrientation, Int32 newValue, Int32 oldValue)
at Elegant.Ui.Grid.GridControlBase.OnScrollBarValueChanged(ScrollBarOrientation scrollBarOrientation, Int32 newValue, Int32 oldValue)
at Elegant.Ui.Grid.ScrollableControl.VerticalScrollBar_ValueChanged(Object sender, ScrollBarValueChangedEventArgs e)
at Elegant.Ui.ScrollBarBase.OnValueChanged(Int32 oldValue)
at Elegant.Ui.ScrollBarBase.set_Value(Int32 value)
at Elegant.Ui.Grid.ScrollableControl.set_VerticalScrollBarValue(Int32 value)
at Elegant.Ui.Grid.ScrollableControl.OnMouseWheel(MouseEventArgs e)
at Elegant.Ui.Grid.GridControlBase.OnMouseWheel(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseWheel(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Elegant.Ui.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at AVue.FCassetteBrowser.TIStart(Object ASettings) in C:\AutoFET\AutoFET5\AutoFET5\GUI\FCassetteBrowser.vb:line 278
InnerException:
|
|
John Pag
|
Aug 4, 2010 - 4:58 AM
|
when i set this.myUnboundGridControl1.RowHeaderColumn.Visible = true; and after I make his change width of column with the mouse then is presented double a part of column and it enters on previous.
|
|
John Pag
|
Jul 27, 2010 - 7:43 AM
|
1. I set AllowSorting = true for myColumns[1]
2. I set AllowColumnSorting = true for my grid
3. I Create sort rule SortRule sortRule1 = new SortRule(myColumns[1], Elegant.Ui.Grid.SortDirection.Descending);
myUnboundGridControl1.SortRules.AddRange(new Elegant.Ui.Grid.SortRule[] { sortRule1 }); 4 After i run my project and try sort myColumns[1] I but it does not become. what other it should I make?
|
|
John Pag
|
Jul 21, 2010 - 5:59 AM
|
i create this class TextCellCustomEditor : TextBox, ICellEditor
{
base.MaxLength = 20;
//some code
}
and after i create column
TextCellStyle myTextCell = new TextCellStyle();
myTextCell.CustomEditorType = typeof(TextCellCustomEditor);
myTextCell.TextAlignment = ContentAlignment.MiddleLeft;
myColumns[0] = new Column();
myColumns[0].DataPropertyName = "1";
myColumns[0].Visible = true;
myColumns[0].CellType = typeof(TextCell);
myColumns[0].CellStyles.AddRange(new Elegant.Ui.Grid.CellStyle[] { myTextCell });
myColumns[0].HeaderText = "Text cells";
it’s work ok but i need change MaxLength programmatically. How i can do it?
How i can change this variable when i create column and how i can change this variable in runtime?
|
|
John Pag
|
Jul 23, 2010 - 12:54 AM
|
MaxLenght is not the width of column but total of characters that it can import the user. For TextBox.MaxLenght = the 10 user can put only 10 characters in the field. This I want to achieve.
|
|
Technical Support
|
Aug 5, 2010 - 9:07 AM
|
Each time your custom editor is activated you can set MaxLength to a specified value.
|
|
Technical Support
|
Jul 22, 2010 - 8:12 AM
|
Please use the Column.Width property. Alternatively you can use the Column.MinimumWidth to make sure that column won’t become smaller in auto-size mode.
|
|
John Pag
|
Jul 22, 2010 - 7:54 AM
|
i want that each column to have its own maxlength. i need to initialize the maxlength for each column during its creation.... or to change the maxlength in runtime. For example, i want to enter the length in the textbox (not in the grid) and after pressing enter i want to set the length for the sellected column, i didnt find how to make it.
|
|
Technical Support
|
Jul 22, 2010 - 5:23 AM
|
The activated editor receives a reference to a Cell object in Activate method. Using the Cell object you can get the column containing this cell and dynamically calculate the width of an editor.
|
|
John Pag
|
Jun 9, 2010 - 5:51 AM
|
can we make it in such a way so as the horizontalscrollbar will mix up the columns in a certain range. for example: 1st column can be always seen and the rest can move in accordance with the horizontal scroll bar
|
|
John Pag
|
Jun 9, 2010 - 5:43 AM
|
I want to extend class TextCell and create class inherrited class MyTextCell:TextCell
{
public MyTextCell(GridControlBase gridControl, Column column)
: base(gridControl, column)
{
}
protected override void OnKeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{ //some code
} } But when i write this code cellsText[k] = (MyTextCell)dr[k].AddNewCell(typeof(MyTextCell), unboundGridControl1.Columns[0]); mistake comes out "Constructor on type ’CSUST.Data.MyTextCell’ not found.." How can i create correcltly the inherrited of this class?
|
|
John Pag
|
Aug 6, 2010 - 1:48 AM
|
I found how I make. pleasant
|
|
John Pag
|
Jul 5, 2010 - 8:39 AM
|
I create inherited class with two constructors. There are no mistakes now
public class MyCell : TextCell
{
public MyCell(GridControlBase gridControl, Column column)
: base(gridControl, column)
{
}
public MyCell(Column column, GridControlBase gridControl)
: this(gridControl, column)
{
}
public TextCellStyle Style
{
get
{
return this.Style;
}
} protected override void OnKeyDown(object sender, KeyEventArgs e)
{ // some code
base.OnKeyDown(sender, e);
} }
i wanted to created the inherited, in which i can control the quantity of the entered symbols in Text Cell, but i dnt know why the event Key Down is not working??? can anyone advise me how can i do it?
|
|
Technical Support
|
Aug 5, 2010 - 9:07 AM
|
When the cell editor is activated, key events are no longer received by the cell. You should use a custom text editor to handle all the key strokes.
|
|
John Pag
|
May 31, 2010 - 1:20 AM
|
How shall i make so as the verticalscrollbar when appears in the grid not to be above the last column but next to it on the right of the column. see how it looks in my grid the last column (see the picture picasaweb.google.com/alexandros.pg#)
|
|
Technical Support
|
Jun 2, 2010 - 7:45 AM
|
We will provide you with a fix at the beggining of the next week. Thank you.
|
|
John Pag
|
May 18, 2010 - 12:41 AM
|
|
|
Richard Warriner
|
May 1, 2010 - 7:34 AM
|
I am thinking of purchasing Elegant Grid but a little concerned that there hasnt been a new release since Nov 2006 Is there a new build coming? I would need it to support VS 2010 and .NET Thanks
|
|
Technical Support
|
Jan 5, 2011 - 9:51 AM
|
We have updated Elegant Grid to version 3.8.
|
|
John Pag
|
Apr 27, 2010 - 7:47 AM
|
BoundGrid control. how can i know above which cell is the mouse without pressing the button of the mouse? just when i move the mouse over the grid...
|
|
Technical Support
|
Apr 29, 2010 - 5:15 AM
|
Please use the following code: Cell cell = boundGridControl1.GetRenderableFromPoint(myPoint) as Cell;
if (cell != null)
{
// your code goes here
}
|
|
Pavel Murashov
|
Apr 27, 2010 - 4:38 AM
|
I have stable exception at use of function EnsureVisibleVertically() for scroll after addition new row to end of the grid. Test project (VS2010) I has sent to you the day before yesterday, but has not received the answer. Exception text: "Index was out of range. Must be non-negative and less than the size of the collection." Stack trace: at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at Elegant.Ui.Grid.RenderableCollection.get_Item(Int32 index)
at Elegant.Ui.Grid.UnboundContentRenderingManager.HitTest(Point point)
at Elegant.Ui.Grid.GridControlBase.ProcessExpandTipOnMouseMove(MouseEventArgs e)
at Elegant.Ui.Grid.GridControlBase.OnScrollBarValueChanged(ScrollBarOrientation scrollBarOrientation, Int32 newValue, Int32 oldValue)
at Elegant.Ui.Grid.ScrollableControl.VerticalScrollBar_ValueChanged(Object sender, ScrollBarValueChangedEventArgs e)
at Elegant.Ui.ScrollBarBase.OnValueChanged(Int32 oldValue)
at Elegant.Ui.ScrollBarBase.set_Value(Int32 value)
at Elegant.Ui.Grid.ScrollableControl.set_VerticalScrollBarValue(Int32 value)
at Elegant.Ui.Grid.ScrollableByItemControl.EnsureVisibleVertically(Int32 itemIndex)
|
|
Technical Support
|
Apr 29, 2010 - 5:19 AM
|
|
|
Pavel Murashov
|
Apr 29, 2010 - 5:58 AM
|
|
|
John Pag
|
Apr 22, 2010 - 7:11 AM
|
I use Elegant.Ui.Grid ver. 3.6.0.0
1.if i use current cell, which is being edited and press the TAB,
then i cannot get the events KeyDown or KeyUp, if i press other
buttons than all is ok.
2. if this row and the cell are the last ones in the table, than
when i press TAB instead of going to the 1st cell in the last row it goes to the 2nd cell.
|
|
David Mc Dermid
|
Apr 5, 2010 - 9:02 AM
|
I am currently evaluating Elegant grid and am having a bit of difficulty implementing a column with a populated combo box. Could you provide a simple example of using a combobox in a column?
|
|
David Mc Dermid
|
Apr 6, 2010 - 7:35 AM
|
Would you please tell me what the latest version is? A quick look at the version history says that this product has been dead since just after beta. Is this factual or is the web page not kept up? I found a link to a dll on the forum that is stated as the latest version. Downloading the file reveals a dll that says it is now version 3.5.0.0. This seems like a pretty big leap from 1.3->3.5?! Could you please explain what you actually have here?
|
|
Technical Support
|
Apr 6, 2010 - 7:55 AM
|
Yes, officially we have not yet released any new version since v.1.3. But internally we have refactored the grid in terms of compatibility with Elegant Ribbon and themes. That is why its current non-official version is 3.5, the same as that of Elegant Ribbon. The grid has also been supported all the time since it was released. We plan to release a new version of Elegant Grid after releasing Elegant Ribbon v.3.6. The latter is scheduled for release this week.
|
|
David Mc Dermid
|
Apr 6, 2010 - 2:10 PM
|
Could you or would you care elaborate on what added features are planned for version 3.6. So far my experience is that I like to basic object model dislike the terribly sparse help file and feel some rather important features appear to not be available (or maybe simply not documented) so at this point I am stuck looking for a reason to make the purchase.
|
|
Technical Support
|
Apr 5, 2010 - 11:56 AM
|
Could you let us know which version of grid you are using?
|
|
David Mc Dermid
|
Apr 5, 2010 - 2:09 PM
|
|
|
David Mc Dermid
|
Apr 5, 2010 - 10:25 AM
|
That didn’t post right. It should have said Column.MappingDataSource Property Gets or sets the mapping data source value for the column
|
|
David Mc Dermid
|
Apr 5, 2010 - 10:23 AM
|
Never mind. I was able to get something working. It is unfortunate your help files are so very sparse. Nothing much worse than clicking on a member link in a help file only to find it it says something like
Column.MappingDataSource Property
Gets or sets the mapping data source value for the column.
|
|
Alex Pag
|
Mar 13, 2010 - 3:22 AM
|
You can give me source code from sample "Simple Grids"?
|
|
Technical Support
|
Mar 15, 2010 - 9:46 AM
|
Simple Grids is a sample that is part of MFC Prof-UIS. So it has nothing to do with C#. Anyway you can download Prof-UIS Trial, install it and check out the source code of Simple Grids.
|
|
Alex Pag
|
Mar 11, 2010 - 9:33 AM
|
I want only opens my combo box cell. I do not want can the user change the text in the cell. How I make him? if i set this.comboBoxCellStyle3.DropDownStyle = ((Elegant.Ui.Grid.ComboBoxStyle)(Elegant.Ui.Grid.ComboBoxStyle.DropDownList)); it is not working? if i set this.comboBoxCellStyle3.AllowEdit = false; i cannot open my combo box list...
|
|
Technical Support
|
Mar 30, 2010 - 2:00 AM
|
We have sent you an updated version of the grid by email. Please try it. It should resolve the issue.
|
|
Alex Pag
|
Mar 11, 2010 - 9:26 AM
|
Hi.
Αfterwards that I step the button the program asks if I want to close the form. Before I step are stored the elements that I have put in cells the text that is in selected cell automatically it changes or in the previous text if existed something in or cleared if cell they were void. What it should I make in this case?<qtlend></qtlend> <qtlbar style="padding: 0pt; display: inline; text-align: left; line-height: 100%; background-color: rgb(236, 236, 236); -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -moz-border-radius-bottomright: 3px; -moz-border-radius-bottomleft: 3px; cursor: pointer; z-index: 999; left: 64px; top: 72px;" dir="ltr" id="qtlbar"><iframe style="border: 1px solid rgb(236, 236, 236); display: none; background-color: white;" src="" id="qtlframe"></iframe></qtlbar>
|
|
Technical Support
|
Mar 30, 2010 - 2:01 AM
|
Please use the following code before showing the confirmation dialog: if (boundGridControl1.EditingCell != null)
boundGridControl1.EditingCell.CommitEdit(true);
|
|
Alex Pag
|
Feb 22, 2010 - 9:15 AM
|
How i can set my combo box cell not editable? (user cannot change text in my combo box cell).I set style for my combo box cell DropDownStyle = DropDownList. But, it’s not work...(((. If i set Editable=false for my column i cannot open my combo box cell.
|
|
Alex Pag
|
Mar 31, 2010 - 2:32 AM
|
Thank’s. i try this code if (boundGridControl1.EditingCell != null)
boundGridControl1.EditingCell.CommitEdit(true); and now all work ok. for combo box element I could not accomplish in order to it does not become edit text his. if you can give me a example?
|
|
Alex Pag
|
Mar 6, 2010 - 4:39 AM
|
Hi. When I type some text in my cell and after press [X] button for close form the text from the current cell automatically lose. what I can do in this situation?
|
|
Technical Support
|
Mar 30, 2010 - 1:55 AM
|
Please add the following code to your FormClosing event handler: if (boundGridControl1.EditingCell != null)
boundGridControl1.EditingCell.CommitEdit(true);
|
|
Alex Pag
|
Feb 27, 2010 - 10:08 AM
|
1. if my combo box cell dropped down how i can know this programmatically? you can show me one example? 2. I could not make so my combo box cell becomes dropped down and at the same time the user be possible to change text. you can show me how i can do it?
|
|
Technical Support
|
Mar 30, 2010 - 2:02 AM
|
1. It is not supported at the moment. We plan to add this functionality in the future. 2. Please use the updated version that we sent to you by email today.
|
|
Technical Support
|
Feb 24, 2010 - 8:49 AM
|
Thank you for reporting the bug. Please download the updated version
|
|
Alex Pag
|
Feb 22, 2010 - 9:15 AM
|
How i can set my combo box cell not editable? (user cannot change text in my combo box cell).I set style for my combo box cell DropDownStyle = DropDownList. But, it’s not work...(((. If i set Editable=false for my column i cannot open my combo box cell.
|
|
Alex Pag
|
Feb 11, 2010 - 11:39 PM
|
Hi. You can show one sample how i can use per-cell data mapping to display values in combo box cell?
|
|
Padraig Beirne
|
Feb 11, 2010 - 2:03 PM
|
I have programs only on one drive(C\:) & data on other drives. ProfUIS is on the programs drive. I had to reformat it. When I ran after projects that proviously worked ok now looked for ProfUIS288u.dll. I copied the dll into the project folder but it didn’t make any diff. I created a new MFC MDI app proj with all defaults except for adding an odbc db which worked ok. That is I added #include <Prof-UIS.h> in to the stdafx.h I expect the problem is in the way that I reinstall ProfUIS 2.88. Any clues? Thanks
|
|
Technical Support
|
Feb 13, 2010 - 11:28 AM
|
We guess you are using Windows Vista or Windows 7. You should run Windows Explorer as Administrator and only then copy Prof-UIS and other DLLs into your application’s folder.
|