Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
480
Newbie Grid Questions
posted

Hi. I've *just* started using netadvantage and have a few questions. I'm developing windows forms/vb.net.

 I'm programatically setting up the grid, which is a pain versus binding it at design time, but this is the nature of the data I'm working with. Consequently, I'm not able to WYSIWYG my way through some issues, like:

 1) How do I change the horizontal alignment of an an entire column to right at run time?

2) Can I insert actual buttons into cells at run time? If not, is there a way to fake this?

3) I'd like to create a grid with a cell for text. When it's selected, I'd like it to pop up into a full text editor with spell checking. Can I do this inside the grid itself, or do I need to instantiate another form entirely?

 

Thanks much.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    1) Do you mean the contents of the column? Or the column itself? You can align the contents of a column using the column.CellAppearance.TextHAlign. You cannot align an actual column to the right side of the grid.

    2) It depends what yuo want. If you want a cell to be a button, set the Style on the column to Button. If you want text and a button, use the EditButton Style. Handle these with the CellButtonClick (or ClickCellButton, I forget) event of the grid. If you want more robust buttons with text or dropdowns or more than one button, you have to use an editor. 

    3) Again, it depends what you want. You might be able to use AutoSizeEditor on the column to allow the user to type into a larger area than just the normal cell. And you can use the UltraSpellChecker compone to do spell checking. If you want something more robust than that, then you will need to show a dialog of your own.  

Children
No Data