Asp.net datagrid on the application of CSS style BUTTON
In asp.net, if we are to a certain button, and TEXTBOX application form, we can use CSSCLASS attributes, such as
This write is wrong and can not achieve operating results because the BUTTONCOLUMN datagrid, not CSSCLASS attributes, the right approach, it should be in the ItemCreated event, write the following code:
If e.Item.ItemType ListItemType.Item OR = _
E.Item.ItemType = ListItemType.AlternatingItem then
Dim myButton as Button = CType (e.Item.Cells (0). Controls (0), Button)
MyButton.CssClass = "abc"
Tags: Border Style, css button, css style, css style sheet, div style, style






Leave a Reply