I have a GridViewComboBoxColumn and while in edit mode I want the StretchVertically to be false so I use the following code:
this.radGridView1.CellBeginEdit += RadGridView1_CellBeginEdit;
private void RadGridView1_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
switch (e.Column.Name)
{
case "MyColumn":
RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
if (editor != null)
{
editor.EditorElement.StretchVertically = false;
editor.EditorElement.Alignment = ContentAlignment.TopLeft;
}
But the dropdownlisteditor is still vertically centered in the cell. Is there a way to have it TopLeft?
Hi,
I defined item and dragged it to the radDiagram.
My question is how to find the items by ID?
When I found the IDs, I would connect two items programmatically. <Source and target are known>.
I used this code
MessageBox.Show(radDiagram1.Shapes[0].Name.ToString());
but nothing ...
But when I used this code
MessageBox.Show(radDiagram1.Shapes[0].Width.ToString());
the width was shown!
I need to find the items individually.
Thank you
Is there a way to change the button on the collapsible panel from a round button to a rectangle? I would have TEXT in the button instead of a UP/DOWN arrow?
TIA
grid.CurrentRow = grid.Rows[rowIndex];<br>grid.CurrentColumn = grid.Columns[fieldIndex];
grid.CurrentRow = selectedRow.ViewInfo.ParentRow.ChildRows[rowIndex];
grid.CurrentColumn = selectedRow.ViewInfo.ParentRow.ChildRows[rowIndex].ViewTemplate.Columns[fieldIndex];
Hello to all
Is there a way to leave the first empty line of the MulticolumnComboBox for example when I open the form that contains it?
I do not know if I explained it well
Fabrizio
Hi,
I am trying to add/remove Pages based on selection made during the a Page step. How can i do that?
Eg. If user select Radio button A in Step 2, i want to skip 3 steps next to it and add few more.
Please help.
Thanks
Binu
Hi,
I am utterly confused by my inability to format numbers in a VirtualGrid to only show three decimals. I can find no access to a "Columns" property, and when using the CellFormatting event, I am unable to utilize CellElement.FormatString (VS tells me the set accessor is inaccessible in that context)...
How can I prevent numbers from showing as 1.23456489456987654 and instead show 1.235 (for instance), without converting the underlying data itself?
Any help appreciated, because I am convinced this must be a trivial operation, which got me to search for hours - to no avail.
For reference, here is what I was trying with the CellFormatting event that will not compile for me:
private void rvgData_CellFormatting(object sender, VirtualGridCellElementEventArgs e)
{
if (e.CellElement.RowIndex > -1)
{
if (e.CellElement.ColumnIndex > 1)
{
/* This yields: Error CS0272 The property or indexer
'VirtualGridCellElement.FormatString' cannot be used in this context
because the set accessor is inaccessible */
e.CellElement.FormatString = "...";
}
}
}
And there's for something else that's frustrating: your code editor on this site does not seem to work on Firefox/Mac...
Hi,
is it possible to move selected cell of PivotGrid with keyboard (arrows keys, like in Excel)?
Alex