Forum Replies Created

Viewing 15 posts - 5,566 through 5,580 (of 5,588 total)
  • Author
    Posts
  • Xceed Support
    Member
    Post count: 5658
    in reply to: Grid Validation #12709

    Calling EndEdit on the CurrentRow should do the trick. For example, in your Save button:

    if( ( ( DataRow )gridControl1.CurrentRow ).IsBeingEdited )
    ( ( DataRow )gridControl1.CurrentRow ).EndEdit();

    Of course, you will need to check the type of the current row before casting to avoid exceptions. 😉

    Imported from legacy forums. Posted by Jenny [Xceed] (had 463 views)

    Xceed Support
    Member
    Post count: 5658
    in reply to: Grid Validation #12707

    Hi Jeff,

    Custom validation can be provided at either the row or the cell level depending on the kind of validation you want to provide. For example, for values entered into an InsertionRow, custom validation would be provided at the row level since “normally”, the user would be allowed to enter all the values in a row before they are validated. In other cases, such as when modifying existing values in the grid, validation would be done at the cell level because “normally” you would allow the user to change the value of only one cell.

    Custom row validation is done using the EndingEdit and ValidationError events. In the EndingEdit event, the custom validation is provided and in the ValidationError event, you can decided if you want to allow the row to exit edit mode in the case where the values of one or more of its cells do not pass the validation process.

    The row’s ValidationError event will be raised if e.Cancel is set to true in the EndingEdit event and/or if an exception is thrown in the EndingEdit event.

    Custom cell validation is done using the LeavingEdit and ValidationError events. In the LeavingEdit event, the custom validation is provided and in the ValidationError event, you can decided if you want to allow the cell to exit edit mode in the case where its value does not pass the validation process.

    The cell’s ValidationError event will be raised when e.Cancel is set to true in the LeavingEdit event, when an exception is thrown in the LeavingEdit event and/or when a validation exception is thrown by the underlying datasource.

    If you need some code, let me know 🙂

    BTW, I have completely revamped the topic on validating in the help file (for version 2.0 of the grid) which will make it alot clearer than it is now 🙂

    I hope this helps!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 1038 views)

    Xceed Support
    Member
    Post count: 5658

    Hello,

    Right now we do not have an official feature-list available however the 2 major features that will make it into version 2.0 of the grid are Hierarchical master/detail and the Windows XP look.

    Other features included better printing support and support for images within cells.

    I am sorry that I cannot provide you with more information but I hope this helps!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 339 views)

    Xceed Support
    Member
    Post count: 5658

    We try 😉

    Imported from legacy forums. Posted by Jenny [Xceed] (had 6431 views)

    Xceed Support
    Member
    Post count: 5658

    Even if they have sorted it be the ColumnManagerRow/Cells, the Index property of each DataRow still represents its index in the actual DataSource. The index of the DataRows in the order in which they are sorted can be retrieved using the GetSortedDataRows method and then checking the Index of the DataRow in the returned collection.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 456 views)

    Xceed Support
    Member
    Post count: 5658

    Hello,

    The Index of the DataRow will represent the index in your ArrayList. Therefore, if your DataRow has an index of 1, it will correspond to the second (arrayList[ 1 ]) item in your ArrayList.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 460 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Buggi,

    You can use the ClientPointToGrid method which will convert the location of the specified client point into grid coordinates. This method is available on every VisualGridElement.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 3656 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Mark,

    You best option would be to set the BackgroundImage property of the RowSelector for which you want to force an image. Keep in mind that you will need to set the CurrentImageIndex, EditImageIndex, etc properties to null (or none in the designer) so that the little glyphs are not drawn over your image when the row is selected!

    Your other options would be to create a class that derives from the RowSelector class and override the PaintForeground method to paint your image or handle the Paint event of the RowSelector to draw your image.

    I hope this helps!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 3733 views)

    Xceed Support
    Member
    Post count: 5658

    Hello,

    Yes. It is possible to use the Xceed Winsock Library in C#.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 5544 views)

    Xceed Support
    Member
    Post count: 5658
    in reply to: Windows 98 support #42616

    Hi Richard,

    I am very sorry to hear you are having an issue with the Xceed FTP Library! The error you are describing has been corrected and the latest DLL is available on our update center:

    <a href=”http://www.xceedsoft.com/download/updates.htm”>http://www.xceedsoft.com/download/updates.htm</a&gt;

    I double checked our support database and you were sent the updated DLL on September 8th at 15:22:09 EST by Pierre-Luc Ledoux, your case # is 56030 and the file was sent as a .zip attachment.

    Again, I apologize for any inconveniences that this might have caused.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 389 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Martha,

    If by hierarchical reports you are referring to hierarchical master/detail, then for the moment it is not possible, however this is one of the major features for version 2.0 of the grid due out by the end of the year!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 812 views)

    Xceed Support
    Member
    Post count: 5658
    in reply to: buttons in cells #12656

    Hi Martha,

    Take a look at the following knowledge base article (and samples) it demonstrates how to display a button in a cell.

    http://www.xceedsoft.com/kb/result.asp?id=377

    If you want to display a button in a TextRow, the same principal will apply.

    If you have any questions, please let us know by contacting technical support at support@xceedsoft.com

    Imported from legacy forums. Posted by Jenny [Xceed] (had 3922 views)

    Xceed Support
    Member
    Post count: 5658

    Hello,

    Both of these requests are already in our “wish-list” for a possible next release of the Xceed Zip Compression Library.

    Thank you for your feedback!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 738 views)

    Xceed Support
    Member
    Post count: 5658

    Hello,

    The grid does not have a property that will allow you to change the selection backcolor of the current cell however what you could do is subscribe to the grid’s CurrentCellChanged event and change the backcolor of the current cell from there. For example:

    // In the form’s load event (or any other appropriate location)
    gridControl1.CurrentCellChanged += new EventHandler( this.CellChanged );
    gridControl1.CurrentCell.BackColor = Color.Pink;
    m_previousCurrentCell = gridControl1.CurrentCell;

    //In the CurrentCellChanged event handler
    private Xceed.Grid.Cell m_previousCurrentCell = null;

    private void CellChanged( object sender, EventArgs e )
    {
    m_previousCurrentCell.ResetBackColor();
    gridControl1.CurrentCell.BackColor = Color.Pink;
    m_previousCurrentCell = gridControl1.CurrentCell;
    }

    I hope this helps!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 525 views)

    Xceed Support
    Member
    Post count: 5658

    Hello,

    The reason why the menu is not painted in the same area as the normal MenuBar is because we are not actually a menu (SmartMenuBar does not derive from the System.Windows.Forms.MainMenu) and we must be painted within the parent MDI’s child rectangle (which does not include that area).

    The normal menu is handled by the OS and the OS has the ability to paint the menu in this section of the child MDI.

    Unfortunately, to our knowledge, there is no way around this.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 870 views)

Viewing 15 posts - 5,566 through 5,580 (of 5,588 total)