473,404 Members | 2,179 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,404 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 1531
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.