'RSS
'
Me
.RSS.AutoSize =
True
Me
.RSS.BackColor = System.Drawing.Color.LightCyan
Me
.RSS.Items.AddRange(
New
Telerik.WinControls.RadItem() {
Me
.ProcessDateTime,
Me
.RadToolStripSeparatorItem1,
Me
.Source,
Me
.RadToolStripSeparatorItem2,
Me
.StatusMessage,
Me
.RadToolStripSeparatorItem3,
Me
.Count,
Me
.RadToolStripSeparatorItem4,
Me
.Version})
Me
.RSS.LayoutStyle = Telerik.WinControls.UI.RadStatusBarLayoutStyle.Stack
Me
.RSS.Location =
New
System.Drawing.Point(0, 242)
Me
.RSS.Name =
"RSS"
Me
.RSS.Size =
New
System.Drawing.Size(736, 33)
Me
.RSS.SizingGrip =
False
Me
.RSS.TabIndex = 0
Me
.RSS.Text =
"RadStatusStrip1"
Me
.RSS.ThemeName =
"Aqua"
Me
.RSS.UseWaitCursor =
True
'
'ProcessDateTime
'
Me
.ProcessDateTime.AutoSize =
False
Me
.ProcessDateTime.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
Me
.ProcessDateTime.Bounds =
New
System.Drawing.Rectangle(0, 0, 100, 22)
Me
.ProcessDateTime.Margin =
New
System.Windows.Forms.Padding(1)
Me
.ProcessDateTime.Name =
"ProcessDateTime"
Me
.RSS.SetSpring(
Me
.ProcessDateTime,
False
)
Me
.ProcessDateTime.Text =
"time"
Me
.ProcessDateTime.TextWrap =
True
'
'RadToolStripSeparatorItem1
'
Me
.RadToolStripSeparatorItem1.Margin =
New
System.Windows.Forms.Padding(1)
Me
.RadToolStripSeparatorItem1.Name =
"RadToolStripSeparatorItem1"
Me
.RSS.SetSpring(
Me
.RadToolStripSeparatorItem1,
False
)
Me
.RadToolStripSeparatorItem1.Text =
"RadToolStripSeparatorItem1"
'
'Source
'
Me
.Source.AutoSize =
False
Me
.Source.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
Me
.Source.Bounds =
New
System.Drawing.Rectangle(0, 0, 69, 20)
Me
.Source.Margin =
New
System.Windows.Forms.Padding(1)
Me
.Source.Name =
"Source"
Me
.RSS.SetSpring(
Me
.Source,
False
)
Me
.Source.Text =
"source"
Me
.Source.TextWrap =
True
'
'RadToolStripSeparatorItem2
'
'
'StatusMessage
'
Me
.StatusMessage.AutoSize =
False
Me
.StatusMessage.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
Me
.StatusMessage.Bounds =
New
System.Drawing.Rectangle(0, 0, 384, 20)
Me
.StatusMessage.Margin =
New
System.Windows.Forms.Padding(1)
Me
.StatusMessage.Name =
"StatusMessage"
Me
.RSS.SetSpring(
Me
.StatusMessage,
False
)
Me
.StatusMessage.Text =
"status"
Me
.StatusMessage.TextWrap =
True
'
'RadToolStripSeparatorItem3
'
'
'Count
'
Me
.Count.AutoSize =
False
Me
.Count.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
Me
.Count.Bounds =
New
System.Drawing.Rectangle(0, 0, 80, 27)
Me
.Count.Margin =
New
System.Windows.Forms.Padding(1)
Me
.Count.Name =
"Count"
Me
.RSS.SetSpring(
Me
.Count,
False
)
Me
.Count.Text =
"count"
Me
.Count.TextWrap =
True
'
'RadToolStripSeparatorItem4
'
'
'Version
'
Me
.Version.AutoSize =
False
Me
.Version.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
Me
.Version.Bounds =
New
System.Drawing.Rectangle(0, 0, 79, 20)
Me
.Version.Margin =
New
System.Windows.Forms.Padding(1)
Me
.Version.Name =
"Version"
Me
.RSS.SetSpring(
Me
.Version,
False
)
Me
.Version.Text =
"version"
Me
.Version.TextWrap =
True
Me.gvRoomNights.Rows(_LastRowIndex).Cells(_LastColIndex).BeginEdit()
However this doesn't seem to work. Actually it never really loses edit, if you type it will edit. However, it doesn't look like it is in edit mode. For example, it is not white and no cursor.
Another,
When I call, grid.beginupdate() & grid.endupdate(), the gird loses all of its cell formatting as far as backcolor.
Thanks in advance
Eric
With gvEntregaDetalle
.MasterTemplate.AllowAddNewRow = False
.MasterTemplate.AutoGenerateColumns = False
.MasterTemplate.AllowDeleteRow = False
.TableElement.BeginUpdate()
.Columns("Pendiente").Expression = "Cantidad-Surtido"
.MasterTemplate.LoadFrom(sqlDR)
.TableElement.EndUpdate()
End With
NumberFormatInfo RupeeFormat =
new
NumberFormatInfo();
RupeeFormat.NumberGroupSeparator =
","
;
RupeeFormat.NumberGroupSizes =
new
int
[] {3, 2};
//NOTE: default format for decimal type columns
DataGridViewCellStyle DecimalStyleVal = New DataGridViewCellStyle();
DecimalStyleVal.FormatProvider = RupeeFormat;
DecimalStyleVal.Format = ConstantsUtils.PriceFormat;
DecimalStyleVal.NullValue =
"0.00"
;
DecimalStyleVal.Alignment = DataGridViewContentAlignment.MiddleRight;
ConditionalFormattingObject c1 =
new
ConditionalFormattingObject(
"Grater"
, ConditionTypes.Greater,
"5"
,
""
,
true
);
c1.CellBackColor = Color.LightBlue;
c1.CellForeColor = Color.Black;
ConditionalFormattingObject c2 =
new
ConditionalFormattingObject(
"Less"
, ConditionTypes.Less,
"5"
,
""
,
true
);
c2.CellBackColor = Color.IndianRed;
c2.CellForeColor = Color.Black;
ConditionalFormattingObject c3 =
new
ConditionalFormattingObject(
"Equal"
, ConditionTypes.Equal,
"5"
,
""
,
true
);
c3.CellBackColor = Color.White;
c3.CellForeColor = Color.Black;
I am using above code for generating conditions.
However, here i am having "5" as a Value1 parameter, instead of that i want to check the same cell value with the new value for same cell
Like say, A column BidPrice have value 50 (Old value backcolor = black)
New price after 1 sec is 51 (New value)
so i want to put conditionalformatting in such a way that it should check Old value and New value for setting cell colors for price change display. in this case "c1" will be applied to the cell after new value.
Display should be BidPrice 51 ( backcolor = blue )
Hope you undderstand wat i want to ask.
Thanks,
private void frmMyForm_SizeChanged(object sender, EventArgs e)
{
gridViewTemplate1.Refresh();
gridViewTemplate2.Refresh();
}