D
djc
I am in the middle of reading an article on the datagrid control from the
4guysfromrolla.com website. I already completed the part on formatting the
datagrid but it did not use any CSS for this. It did inform me of the
different 'styles' though:
HeaderSyle, FooterStyle, ItemStyle, and AlternatingItemStyle for the grid as
a whole and HeaderSyle, FooterStyle, ItemStyle, and DataFormatString for
specific columns. I have 2 specific question with regard to this.
1) can I simply assign a CssClass="cssClassID" to each of these datagrid
'styles' and do my formatting in my external style sheet?
2) I want to control the width of each individual column in my datagrid. I
don't mind if the rows get taller to accomodate more data but I don't want
my columns to get any wider or narrower. How should I go about doing that?
any input is greatly appreciated. Thanks.
4guysfromrolla.com website. I already completed the part on formatting the
datagrid but it did not use any CSS for this. It did inform me of the
different 'styles' though:
HeaderSyle, FooterStyle, ItemStyle, and AlternatingItemStyle for the grid as
a whole and HeaderSyle, FooterStyle, ItemStyle, and DataFormatString for
specific columns. I have 2 specific question with regard to this.
1) can I simply assign a CssClass="cssClassID" to each of these datagrid
'styles' and do my formatting in my external style sheet?
2) I want to control the width of each individual column in my datagrid. I
don't mind if the rows get taller to accomodate more data but I don't want
my columns to get any wider or narrower. How should I go about doing that?
any input is greatly appreciated. Thanks.