or
this
.radGridView1.Rows[0].Cells[
"Status"
].Value.ToString();
Hi,
I have a RadPanel and I've added an ImagePrimitive to it. I trying set the image in the center of the panel, but image is not centered after resize. After debugging I found out the image get the correct location values (the ones that should be after resize), but the screen displays the values of the previous resize. I've tried refreshing the form but it still doesn’t work.
I'm using Q1 2010 SP2
Thanks for your help.
Sharon.void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
base.OnCellFormatting(sender, e);
GridCellElement ce = e.CellElement;
ce.Value = ChangeDateFormat(ce.Value);
}
Thanks in advance
radGridView1.DataSource = db.AppUsage(1,
new
DateTime(2011, 2, 10),
new
DateTime(2011, 5, 11));
void
radGridView1_RowSourceNeeded(
object
sender, GridViewRowSourceNeededEventArgs e)
{
GridViewRowInfo rowInfo = e.ParentRow;
String packageId = rowInfo.Cells[
"PackageId"
].Value.ToString();
String parentPackageId = rowInfo.Cells[
"ParentPackageId"
].Value.ToString();
WorkspaceMiQEntities db =
new
WorkspaceMiQEntities();
foreach
(var u
in
db.Usage(1,
new
DateTime(2011, 2, 10),
new
DateTime(2011, 5, 11),
null
, Int32.Parse(packageId),
null
, Int32.Parse(parentPackageId)))
{
GridViewRowInfo row = e.Template.Rows.NewRow();
row.Cells[
"StartDateTime"
].Value = u.StartDateTime;
row.Cells[
"EndDateTime"
].Value = u.EndDateTime;
row.Cells[
"UserName"
].Value = u.UserName;
row.Cells[
"DomainName"
].Value = u.DomainName;
row.Cells[
"DeviceName"
].Value = u.DeviceName;
e.SourceCollection.Add(row);
}
db.Dispose();
}