i'm using this controls for display persian text...
in design time everything is OK but when it runs the text will clipped like the picture...
as you see it shows some border inner the text box...
just to say, the padding doesn't change anything...
I'm having an issue with my project. I have a RadGridView populated by a Stored Procedure, I have some Cellformatting in place.
I'm getting some odd behaviour when scrolling, the formatting is being applied to more than just the first 2 columns and the more you scroll the worse it gets.
I'm using an older version but we recently purchased the latest version of telerik for winforms to test and I'm getting the same behaviour in the new project.
Any assistance would be appreciated.
My code for CellFormatting
Private Sub DataGridView2_CellFormatting(sender As Object, e As CellFormattingEventArgs) Handles DataGridView2.CellFormatting
If e.ColumnIndex = 0 Then
e.CellElement.Font = RWLCompleteFont
e.CellElement.ForeColor = Color.Black
e.CellElement.NumberOfColors = 1
e.CellElement.BackColor = Color.LightSteelBlue
e.CellElement.DrawFill = True
e.CellElement.DrawBorder = True
e.CellElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.OuterInnerBorders
End If
If e.ColumnIndex = 1 Then
e.CellElement.Font = RWLDetailsFont
e.CellElement.ForeColor = Color.Black
e.CellElement.NumberOfColors = 1
e.CellElement.BackColor = Color.LightSkyBlue
e.CellElement.DrawFill = True
e.CellElement.DrawBorder = True
e.CellElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.OuterInnerBorders
End If
End Sub
Hi,
how to set styling (font size, color etc) on a value cell to be exactly the same as the cell that represents column header that value cell belongs to?
I'm able to save a RadGridView's properties(filters and layout) to XML and I store that XML in a SQL table(not a file).
However how do I apply the XML from SQL back to the grids layout? I can apply the layout when in file format but I'm not smart enough to figure out how to apply when in SQL format.
Again any help would be appreciated.
Brent
string
sTABS =
"select tabid, tabname from tables"
;
dtTable = GetData(sTABS);
//Procedure to get the data back as a datatable
GridViewComboBoxColumn tabcol =
new
GridViewComboBoxColumn();
tabcol.DropDownStyle = RadDropDownStyle.DropDownList;
tabcol.HeaderText =
"Table"
;
tabcol.FieldName =
"TABID"
;
tabcol.DataSource = dtTable;
tabcol.DisplayMember =
"TABNAME"
;
tabcol.ValueMember =
"TABID"
;
tabcol.Width = 150;
gvSetup.Columns.Add(tabcol);
string
sCOLS =
"Select TVID, COLNAME From Cols"
;
dtCols = GetData(sCOLS);
//Procedure to get the data back as a datatable
GridViewComboBoxColumn col =
new
GridViewComboBoxColumn();
col.DropDownStyle = RadDropDownStyle.DropDownList;
col.HeaderText =
"Columns"
;
col.FieldName =
"TVID"
;
col.DataSource = dtCols;
col.DisplayMember =
"COLNAME"
;
col.ValueMember =
"TVID"
;
col.Width = 150;
gvSetup.Columns.Add(col);
Hi,
I format gridview cell GridViewDecimalColumn with FormatString : {0:0,0.00}
and :
private void gvPart_EditorRequired(object sender, EditorRequiredEventArgs e)
{
if (e.EditorType == typeof(GridSpinEditor)
&& (gvPart.CurrentCell.ColumnInfo.FieldName == "Cost" || gvPart.CurrentCell.ColumnInfo.FieldName == "List"))
{
e.EditorType = typeof(CurrencyEditor);
}
}
But when i tab into cell. this is problem:
https://www.screencast.com/t/sKnDuLLkH
this is i expect:
https://www.screencast.com/t/RNwqwxUhDwCc
Can i move the cursor to the end when i focus to the cell ?
And when i input with this format with value 2.99 , it will display : 02.99. Can it make it only 2.99 ?
Hi,
I have a GridView with a child template (X) and another child template (Y)
into the child template (X) and have a decimal column (C) in (Y).
I want to SUM the decimal column (C) in (Y) into a cell of its parent row in (X).
Please attach an example
Hello,
We begins to use a TimeLineView scheduler grouped by resources with Progress OpenEdge 11.7..
It is possible to display an hours bar on the top under the days.
Regards
Chistian