or
void
Export_to_Excel(String myExcelFile)
{
RadGridView myGridView =
new
RadGridView();
myGridView.DataSource = myDataSet.joberrors;
RadGridViewExcelExporter exporter =
new
RadGridViewExcelExporter();
exporter.Export(myGridView, myExcelFile,
"Sheet1"
);
exporter =
null
;
myGridView =
null
;
}
myGridView.LoadFrom(myDataSet.joberrors.CreateDataReader());
dg.Relations.AddSelfReference(dg.MasterTemplate,"ID", "IDPARENT");
А within
the one level does not work.
Operation of the removing does not work too.
Thanks!
this.Enter += new EventHandler(BaseButton_Enter);
this.Leave += new EventHandler(BaseButton_Leave);
void BaseButton_Enter(object sender, EventArgs e)
{
this.ButtonElement.ButtonFillElement.BackColor = Color.Blue;
this.ButtonElement.ForeColor = Color.White;
this.ButtonElement.ButtonFillElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
}
void BaseButton_Leave(object sender, EventArgs e)
{
this.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local);
this.ButtonElement.ResetValue(LightVisualElement.ForeColorProperty, Telerik.WinControls.ValueResetFlags.Local);
this.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.GradientStyleProperty, Telerik.WinControls.ValueResetFlags.Local);
}
I have a RadDropDownList in a gridview, the Value Changed Event is raised only when I increase/ Decrease the value with the arrows and not when key pressed.
I partially resolved the problem by adding the following code to the Value Changed Event:
GridSpinEditor gseditor = sender as GridSpinEditor;
if (gseditor != null)
{
this.CurrentCell.Value = gseditor.Value;
}
When I press the backspace key the event is raised except if it the last digit.
Any solution?
Thanks,
Dror
foreach (GridViewRowInfo row in radGV_.Rows)
{
row.Cells["BName"].Value = txtBName.Text;
}