473,385 Members | 1,869 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,385 software developers and data experts.

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 1544
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.microsoft.com> wrote in message
news:19**************@cpmsftngxa06.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
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? ...
1
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
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...
2
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...
5
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
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....
6
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...
5
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...
12
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
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.