|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ItemStyle questionIn my aspx file I have a datagrid with some BoundColumn's. When a format has been defined for a column (for colors, horizontal alignment, etc), it adds an ItemStyle element inside the bound column element, as in this example: <asp:BoundColumn DataField="DEEMAIL" SortExpression="DEEMAIL" HeaderText="DEEMAIL"> <ItemStyle ForeColor="Green"></ItemStyle> </asp:BoundColumn> When a format has not been defined, the bound column element doesn't have this ItemStyle element (well, that's kind of obvious): <asp:BoundColumn DataField="NUCPF" SortExpression="NUCPF" HeaderText="NUCPF"></asp:BoundColumn> My question is: programmatically (in the .cs file), how can I check if an ItemStyle has been defined for a given column? I searched high and low but couldn't find an answer. I appreciate any help on this issue. Leonardo D'Ippolito Leonardo,
Did you try ItemStyle property of BoundColumn class? Eliyahu <leodippol***@gmail.com> wrote in message Show quoteHide quote news:1114718466.678090.294190@f14g2000cwb.googlegroups.com... > Hello sirs, > > In my aspx file I have a datagrid with some BoundColumn's. When a > format has been defined for a column (for colors, horizontal alignment, > etc), it adds an ItemStyle element inside the bound column element, as > in this example: > > <asp:BoundColumn DataField="DEEMAIL" SortExpression="DEEMAIL" > HeaderText="DEEMAIL"> > <ItemStyle ForeColor="Green"></ItemStyle> > </asp:BoundColumn> > > When a format has not been defined, the bound column element doesn't > have this ItemStyle element (well, that's kind of obvious): > > <asp:BoundColumn DataField="NUCPF" SortExpression="NUCPF" > HeaderText="NUCPF"></asp:BoundColumn> > > My question is: programmatically (in the .cs file), how can I check if > an ItemStyle has been defined for a given column? > > I searched high and low but couldn't find an answer. > > I appreciate any help on this issue. > > Leonardo D'Ippolito >
I've lost my drop down list box!
Columns are displayed twice DataRowView - deleting rows: A little quiz -or- Why doesn't this work... TextBox Value Show Date only from DateTime in DataGrid Export to excel problem ItemCreated question Need to create Hieararical DataGrid using ASP.Net Datagrid !!! MXDatagrid paging problem datagrid raw |
|||||||||||||||||||||||