I also figured out how to make certain columns Read Only. My code looks like this...
(((Epicor.Mfg.BO.PartBinSearchDataSet)(binUltraGrid1.DataSource)).PartBinSearch).PartNumColumn.ReadOnly = true;
This is referencing to my ultra grid binUltraGrid1 and you could change PartNumColumn to another value if you wanted to make that column read only as well.
I hope this helps.
(((Epicor.Mfg.BO.PartBinSearchDataSet)(binUltraGrid1.DataSource)).PartBinSearch).PartNumColumn.ReadOnly = true;
This is referencing to my ultra grid binUltraGrid1 and you could change PartNumColumn to another value if you wanted to make that column read only as well.
I hope this helps.
--- In vantage@yahoogroups.com, "gkoutre" <gkoutre@...> wrote:
>
>
>
>
> Hey Christopher,
>
> I have found that for whatever EpiUltraGrid you are trying to make as ReadOnly, you can simply say...
>
> epiUltraGridName.ReadOnly = true;
>
> This works if you want to make the entire Ultra Grid read only, but I am having a problem because I only want to make certain columns read only and not others. It also seems to cause the text in the ultra grid to become rather faded in appearance.
>
> --- In vantage@yahoogroups.com, "Christopher R" <cryhal@> wrote:
> >
> > Anyone experienced any issue's setting extended props on an epiultragrid with C#? In particular, 9.04.505b?
> >
> > Like all the old school Vantage/Epicor peeps out there its second nature to just set the value of the tables columns to ReadOnly = True in Vb and be done with this like so:
> >
> > If edvOrderDtl.dataView.Table.Columns.Contains("CheckBox01") Then
> >
> > edvOrderDtl.dataView.Table.Columns("CheckBox01").ExtendedProperties("ReadOnly") = True
> >
> > End If
> >
> >
> > Wizard method for C# same code, same methodology, just C# and its as if this function just doesn't work at all:
> >
> > private static void SetExtendedProperties()
> > {
> > // Begin Wizard Added EpiDataView Initialization
> > EpiDataView edvQuoteDtl = ((EpiDataView)(oTrans.EpiDataViews["QuoteDtl"]));
> > // End Wizard Added EpiDataView Initialization
> >
> > // Begin Wizard Added Conditional Block
> > if (edvQuoteDtl.dataView.Table.Columns.Contains("CheckBox01"))
> > {
> > // Begin Wizard Added ExtendedProperty Settings: edvQuoteDtl-CheckBox01
> > edvQuoteDtl.dataView.Table.Columns["CheckBox01"].ExtendedProperties["ReadOnly"] = true;
> > // End Wizard Added ExtendedProperty Settings: edvQuoteDtl-CheckBox01
> > }
> > // End Wizard Added Conditional Block
> > }
> >
> > Sighs.........any insite would be great, I can't be the only one customizing in C# now with the 9.x release.
> >
> > Thanks so much!
> >
> > Christopher Ryhal
> > Consultant
> > chris.ryhal@
> > 317-364-2134
> >
>