6
I Use This!
Activity Not Available

News

Posted over 12 years ago by zneic
Hy, can someone tell me how can I color a cell in a datagrid? ex: I want to color in Red the cell 2,2. Thank you, and have a nice day.
Posted over 12 years ago by dariusdamalakas
You should be able to get to the actual Button instance, and from there you could call button.Enabled = false to disable that.
Posted over 12 years ago by micronovo
hi, I am not found any way do that.But you can create your custom Click Controller,and remove custom Click Controller when the button shouldn't be click.
Posted over 12 years ago by lipiau
Hello, What shall I do when a GDI+ error occurs - the grid ends up showing a big red X on white background - and the application becomes unstable? The grid is filled with data from a DataReader, each record inserts a new row with new cells. Many thanks, Pieter
Posted over 12 years ago by MichaelBate
I am using the following code to create a button in a cell: SourceGrid.Cells.Button btn = new SourceGrid.Cells.Button("Font"); I have not found any way to either disable or hide the button. I have programmed to button click even to ignore ... [More] clicks when the button should be disabled, but I would like the user to see that he/she shouldn't be clicking the button. There seem to be several types of "Button" in SourceGrid so I want to make clear which one I am using. Or should I be using a different class to implement a button within a cell? Thanks in advance, Michael Bate [Less]
Posted over 12 years ago by gte946e
Thanks Micronovo, That's exactly what I ended up doing. And I captured the selection changed event and adjusted the selected cells with the method you described above. I appreciate the help! I should have marked this solved.
Posted over 12 years ago by micronovo
You want to change some visual properties of the cell you must use the View class. SourceGrid.Cells.Views.Cell viewCell = new SourceGrid.Cells.Views.Cell(); viewCell.ForeColor = Color.Yellow; viewCell.BackColor = Color.SteelBlue; grid1[x, y].View = viewCell;
Posted over 12 years ago by gte946e
Hi all, I'm trying to make a grid that has a large amount of custom cell back/fore colors look a bit more presentable with regard to highlighting. Basically I'd like to have each cell update when it is highlighted and change both the fore and ... [More] background colors. Is this possible? If so, what's the most efficient way of doing this. Cheers, Nick Spencer [Less]
Posted over 12 years ago by kenji_uno
Hi. Probably DecimalPlaces needs to be set manually. Here is a modified sample from frmSample03.cs grid[currentRow, 1] = new SourceGrid.Cells.Cell(0); SourceGrid.Cells.Editors.NumericUpDown l_NumericUpDownEditor = new ... [More] SourceGrid.Cells.Editors.NumericUpDown(typeof(decimal), 50, -50, 0.1m); l_NumericUpDownEditor.Control.DecimalPlaces = 1; grid[currentRow, 1].Editor = l_NumericUpDownEditor; Also, select CellType to allow decimal expression like typeof(decimal) instead of typeof(int) which is originally used in frmSample03. [Less]
Posted over 12 years ago by Tobicic
Hi there! I Need some help regarding a numericUpDown cell ecitor type. I want to use decimal which of course basically is no problem. However, i want to do two things which i couldn't get working so far: 1.) Limit the number of decimal places ... [More] to 1 2.) While editing the decimal places are not shown - the number is always rounded to 0 decimal places Any ideas? Thank you! Tobias P.s. Awesome Project - i love it!:) [Less]