I have a small problem. I’m trying to get what is displayed in a masked text box to align to the right. The code below “should” do it, but it only aligns the text to the right when the field is edited.
c = this.gcProducts.Columns[“LeadTime”];
c.Title = “Lead Time”;
c.CanBeGrouped = true;
c.Width = 100;
GridMaskedTextBox maskedTextBox = new GridMaskedTextBox();
c.CellEditor = maskedTextBox;
c.CellViewer = maskedTextBox;
maskedTextBox.Mask = @”9999999 \D\a\y\s”;
maskedTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
Any ideas??
Cheers,
Pete.
Imported from legacy forums. Posted by Peter (had 2063 views)