By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,165 Members | 853 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,165 IT Pros & Developers. It's quick & easy.

Datagrid from Code

P: n/a

I have a datagrid in my aspx page.

I am trying to set some properties from my aspx.vb code.
I am having problems in the following 3 lines:

'dgProducts.GridLineStyle = "Solid"

Error: 'GridLineStyle' is not a member of

'dgProducts.PagerStyle-HorizontalAlign = "Center"

Error: Method arguments must be enclosed in parentheses.

'dgProducts.OnPageIndexChanged = "dgProducts_Paged"

Error: 'System.Web.UI.WebControls.DataGrid.Protected Overridable Sub
OnPageIndexChanged(e As
System.Web.UI.WebControls.DataGridPageChangedEvent Args)' is not
accessible in this context because it is 'Protected'.

The function dgProducts_Paged is public. I don't understand what is
going on.


Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.