473,325 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

datagrid error

hi,

I tried to create a datagrid, I followed the code exactly from the samples
at dotgotnet.com. However, I am getting an error message which I have no clue
why ??

Compiler Error Message: CS0122:
'MainFolder.FolderB.WebForm5.MyDataGrid_Page(objec t,
System.Web.UI.WebControls.DataGridPageChangedEvent Args)' is inaccessible due
to its protection level

This line is highlighted in red:
Line 13: <ASP:DataGrid id="MyDataGrid" runat="server" AllowPaging="True"
PageSize="3" PagerStyle-Mode="NumericPages"

Any input is appreciated.

regards,
andrew

Apr 5 '06 #1
2 1528
Make MyDataGrid_Page protected. By default it is private.

Eliyahu

"Andrew" <An****@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.com...
hi,

I tried to create a datagrid, I followed the code exactly from the samples
at dotgotnet.com. However, I am getting an error message which I have no
clue
why ??

Compiler Error Message: CS0122:
'MainFolder.FolderB.WebForm5.MyDataGrid_Page(objec t,
System.Web.UI.WebControls.DataGridPageChangedEvent Args)' is inaccessible
due
to its protection level

This line is highlighted in red:
Line 13: <ASP:DataGrid id="MyDataGrid" runat="server" AllowPaging="True"
PageSize="3" PagerStyle-Mode="NumericPages"

Any input is appreciated.

regards,
andrew

Apr 5 '06 #2
thanks, it works fine now. I couldn't figure it out, even went as far as to
upgrade my .net framework servicepack.

regards,
andrew

"Eliyahu Goldin" wrote:
Make MyDataGrid_Page protected. By default it is private.

Eliyahu

"Andrew" <An****@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.com...
hi,

I tried to create a datagrid, I followed the code exactly from the samples
at dotgotnet.com. However, I am getting an error message which I have no
clue
why ??

Compiler Error Message: CS0122:
'MainFolder.FolderB.WebForm5.MyDataGrid_Page(objec t,
System.Web.UI.WebControls.DataGridPageChangedEvent Args)' is inaccessible
due
to its protection level

This line is highlighted in red:
Line 13: <ASP:DataGrid id="MyDataGrid" runat="server" AllowPaging="True"
PageSize="3" PagerStyle-Mode="NumericPages"

Any input is appreciated.

regards,
andrew


Apr 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ruy Castelli | last post by:
Hello, I'm trying to get the details out of a datagrid component and it works fine when I'm accessing the first page of the datagrid, but when I try to click on the details hyperlink for an item...
2
by: Mike P | last post by:
I have a datagrid with a 'Delete' column that the user can click on to delete a row in the datagrid. I thought that I would need to have some kind of error handling in case somebody goes into the...
3
by: Mike P | last post by:
I have a datagrid with a 'Delete' column that the user can click on to delete a row in the datagrid. I thought that I would need to have some kind of error handling in case somebody goes into the...
3
by: CVerma | last post by:
Hi, I have an embedded datagrid within a datalist. I am not able to perfrom paging in the datagrid. Any ideas? Here is my code: Here is my Simplegrid.cs file: using System; using...
2
by: rhen18 | last post by:
I'm using a NoMachine - NX Client for Windows and when I log in, I get a "connection error" ( thats what exactly is displayed) Here are the details of the error. NX> 203 NXSSH running with pid:...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.