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
|
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
|
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
|
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
|