473,569 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

about datagrid's "readonly" property

when I set the datagrid's readonly=true,I can't set it back to false
value,why?

Anybody can tell me the reason?

Thanks your help.

Woodpecker.
Nov 20 '05 #1
5 1576
Hey,

I tried to set the datagrid's readonly property in code, to either true or
false, and I can see it works fine. (for example, there are two buttons on
the form, click one of them to set the property to true, and the other to
set it to false).

could you tell me more details about your code, so we can see if we missed
anything there.

Thanks.

Aiwen Guo
VB.Net Team

Nov 20 '05 #2
How do I clear the contents of the datagrid because I want to fill in the
datagrid again.

"Aiwen Guo [MSFT]" <ab*@online.mic rosoft.com> wrote in message
news:19******** ******@cpmsftng xa06.phx.gbl...
Hey,

I tried to set the datagrid's readonly property in code, to either true or
false, and I can see it works fine. (for example, there are two buttons on
the form, click one of them to set the property to true, and the other to
set it to false).

could you tell me more details about your code, so we can see if we missed
anything there.

Thanks.

Aiwen Guo
VB.Net Team

Nov 20 '05 #3
"Alan" <NO************ **@yahoo.com.au > schrieb
How do I clear the contents of the datagrid because I want to fill in
the datagrid again.


I guess you are not "Woodpecker ", so I suggest you should open a new thread
and ask your question again.
--
Armin

Nov 20 '05 #4
Cor
Hi Armin,

No that not,
This question is I think 10 times send to this newsgroup.

And I think nobody understand how it is done, because there are no answers
except from OHM who said: "clean the datatable". datatable.clear

But I doubt if that is the requested answer

Cor
How do I clear the contents of the datagrid because I want to fill in
the datagrid again.
I guess you are not "Woodpecker ", so I suggest you should open a new

thread and ask your question again.

Nov 20 '05 #5
"Cor" <no*@non.com> schrieb
Hi Armin,

No that not,
This question is I think 10 times send to this newsgroup.
Please write the text below the quote. I don't know what you are referring
to.
And I think nobody understand how it is done, because there are no
answers except from OHM who said: "clean the datatable".
datatable.clear

But I doubt if that is the requested answer


I only see an answer from Aiwen Guo.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6

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

Similar topics

4
9886
by: datactrl | last post by:
HI, all I found the return value from obj.readOnly is always the original vaule in HTML setting, even after doing obj.readOnly=true/false. How can I get the real time value set by javascript? jack
1
1220
by: woodpecker | last post by:
when I set readonly=true,I can't set it back to the value "false",why? Anybody can tell me the reason and fix the problem? Thanks advance. Woodpecker.
14
3571
by: Codemonkey | last post by:
Just a silly question, but why can't you overload a writeonly property with a readonly one? Surely the compiler can tell the difference of which one to call at compile time, depending on if it is an assignment or a get? I know there isn't much point to this anyway, but until Properties with different scope for Get and Set methods are brought...
2
2286
by: Marcin Floryan | last post by:
I am creating a custom control (Inherits UserControl) and my control containt a TextBox control. TextBox control has a Property called "ReadOnly". I would like to expose this property outside my own control, but it seems impossible because when I write: Public Property ReadOnly() as Boolean .... The compilter treats ReadOnly as a...
5
10290
by: fred | last post by:
With a Class is there any difference between a readonly property and function besides having to use Get/End Get. Are there any performance/resource advantages for either. Thanks Fred
4
2050
by: Dany P. Wu | last post by:
Hi everyone, I'm not entirely sure if this is the best way of going about it, but here's the scenario.......... I have two datagrid, each bound to a datatable which have checkbox columns. There are two buttons between the datagrids, "Add" and "Remove". They basically remove rows from one grid to the other, only those with the checkbox...
6
10656
by: Aaron Smith | last post by:
Ok. I have a dataset that has multiple tables in it. In one of the child tables, I have a column that I added to the DataSet (Not in the DataSource). This column does not need to be stored in the data on the datasource. It simply gets the first name and last name of an instructor and displays it in the grid. I have two major problems.... One,...
5
2179
by: John Smith | last post by:
Is it possible to set DataGrid's ReadOnly property to True/False at runtime? An example: <asp:datagrid id="dg1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:BoundColumn DataField="id" ReadOnly="True" HeaderText="ID"></asp:BoundColumn> </Columns> <asp:datagrid>
12
2286
by: eric.goforth | last post by:
Is there any reason to use: Private newPropertyValue As Integer Public ReadOnly Property MyProperty(ByRef MyParam as Integer) As Integer Get Return newPropertyValue End Get End Property
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6283
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.