or
private void grid_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e){ if (e.Column.Name == "Days") { MyObject obj = (MyObject)e.Row.DataBoundItem; if (obj != null) { TimeSpan span = DateTime.Now.Date - obj.SomeDate.Date; e.CellElement.Value = span.Days; } }}POSSGridView.ClearSelection(); POSSGridView.CurrentRow = null;foreach (GridViewRowInfo rowInfo in POSSGridView.Rows) { if (rowInfo.IsSelected)this.radGridView1.Rows.CollectionChanged += new NotifyCollectionChangedEventHandler(Rows_CollectionChanged);...
private void Rows_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
if (e.Action == NotifyCollectionChangedAction.Move)
{
for (int i = 0; i < this.radGridView1.Rows.Count; i++)
{
this.radGridView1.Rows[i].Cells["Priority"].Value = i + 1;
}
}
}