Hi
I have the following code ..
Private
Sub
RadGridView1_CellFormatting (sender
As
Object
, e
As
UI.CellFormattingEventArgs)
Handles
RadGridView1.CellFormatting
If
e.CellElement.ColumnInfo.Name =
"Document"
Then
e.CellElement.ForeColor = Color.Red
Else
e.CellElement.ResetValue (LightVisualElement.ForeColorProperty, ValueResetFlags.Local)
End
if
If
e.CellElement.ColumnInfo.Name =
"Document"
Then
If
e.CellElement.RowInfo.Cells (
"Document"
). Value> = RadTextBox4.Text
And
e.CellElement.RowInfo.Cells (
"Document"
). Value <= RadTextBox5.Text
Then
e.CellElement.DrawFill =
True
e.CellElement.BackColor = Color.Yellow
e.CellElement.ForeColor = Color.Blue
e.CellElement.GradientStyle = Telerik.WinControls.GradientStyles.Radial
e.CellElement.Font =
New
Font (
"Book Antiqua"
, 12.75 !, FontStyle.Bold)
End
if
End
if
End
Sub
works perfectly !
Now I would like to add only the sum in the
"Document"
column that only e.CellElement.BackColor = Color.Yellow or also e.CellElement.GradientStyle = Telerik.WinControls.GradientStyles.Radial have.
I would like to have this sum displayed in radlabel3.text, how do I get it there?
void
DFGRID_CellValueChanged(
object
sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
e.Row.Tag =
"dirty"
;
}
Hello. I searched for similar problems in the threads but can't find one that solves my problem.
My form's KeyPreview property is set to true, and I have a code for Form_KeyDown event as follows:
private void Form_KeyDown(Object eventSender, KeyEventArgs eventArgs)
{
...some code
}
Now, when I press the ESC key inside one of the cells in edit mode, I expect the Form_KeyDown event to fire. But in this case, it does not. It only fires when the grid is not in edit mode.
How can I automatically trigger these form key events from the editors, without manually calling them from CellEditorInitialized?
Thank you in advance.
Is there a best way to clear contents of an unbound grid without removing the rows/columns?
RadGridView.Rows.Clear() is not desirable because it deletes the actual rows.
I see that the CustomColors[] array is read only.
How can I assign a list of custom colors to a ColorDialogForm?
Thanks,
Jim
Hello
I am trying to modify programmatically the back color of the Grid Column Chooser.
I have tried setting the backcolor on the columnChoosercreated Event but I had no success
Thanks in advance for any advice on the matter
Pierre-Jean
Hi,
I'm having a bit of an issue filtering old dates in my gridview. By default, the datepicker select today's date. Depending on the results and my dataset, the dates might be a couple fo years back (anywhere in between 1999 and 2020).
Is there a quick way to browse through the different years on the datepicker? At the moment, I can only switch 3 months back or forward using the arrows.
Hi All
I am wondering if there is a way of changing the filtering to look more like the current version/s of excel.
The file grid.jpg is what the radgrid gives me, whereas the excel.jpg shows how to select multiple months, and select key ranges (this month, last month, between, etc).
Would i be able to replicate this with the gridview?
Also how can i change the filter logos so they are more visible when a column has a filter applied?
Ade