473,399 Members | 2,774 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,399 software developers and data experts.

i have the textbox when i run the program the text box is readonly mode

i have button on add, update and close and ultrawebgrid when i doubleclick the the cell in ultrawebgrid the datas are stored in corresponding textbox

my questions:

1.when i add the new data the two boxes are enable and the data are store in the grid.

2. when i update the datas the number textbox is disable and the name should be enable after update the datas and click th update button the data should be updated.


for which how can i write the coding i am using c#
Aug 19 '09 #1
5 2222
tlhintoq
3,525 Expert 2GB
when i add the new data the two boxes are enable [...] for which how can i write the coding i am using c#
myTextbox1.enabled = true;
myTextbox2.enabled = true;

update button the data should be updated.
myTextbox1.text = "Sample1";
myTextbox2.text = "Sample2";
Aug 19 '09 #2
please explain the coding
Aug 20 '09 #3
tlhintoq
3,525 Expert 2GB
I'm afraid you are either going to have to explain your original problem better, so I can give you a better answer -or- better describe what you don't understand about my answer.

I don't know what you are looking for with respect to an answer.
Aug 20 '09 #4
i have the two textbox and two buttons.1 TB is number and other is name, 1 button is ADD and other is UPDATE and also have a gridview.when i doubleclick the gridview the data are placed in the TB that's ok. My problem is

1. when i update the details the name should be edit but the number should not be edited and new edit details are store in the gridview.

2.when i add the new data the two TB(textbox) must be editable mode and the values are store in gridview

i am using c# with ultrawebgrid.

pls reply me immediately i am waiting for your reply
Aug 21 '09 #5
tlhintoq
3,525 Expert 2GB
when i update the details the name should be edit
"ReadOnly" is a property of the textbox. Just change it to false.
Expand|Select|Wrap|Line Numbers
  1. myNameTextBox.Readonly = false;
You probably also want to add a handler for the Name textbox .TextChanged event so you can put the new value into your gridview
Aug 21 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Albinas | last post by:
Hi all, I am trying to customize the text box to suit the practice of my app. And I am working about the focus behavior of text field. I have met the the following problem. When I set the...
0
by: doug albright | last post by:
the textbox is always in read only mode (yes the config is ok for the properties: enabled, maxLength, readonly, etc) The problem only occurs when I create the window via a server side script,...
2
by: NewToDotNet | last post by:
Hi, I am very new to ASP.NET and web programming in general. I have one issue. I have a Datagrid object with Edit template. In one Datagrid row, I have 1 DropdownList, 1 textbox and 1 readonly...
8
by: tshad | last post by:
I cannot seem to get the asp:textbox to use classes. Style works fine. I am trying to set the textbox to act like a label in some instance so it doesn't have a border, readonly and the background...
2
by: Eric | last post by:
I have a textbox on a form that is populated from the database when the form loads. When I check textbox.Text when the user clicks my submit button, the value is always what it was when the form...
0
by: Dan | last post by:
Issue making textbox visible based on specific input from a radio button list in an EditItemTemplate I want to setup a gridview that when in edit mode and when the user selects "Other" from a...
4
by: H-S | last post by:
Please help. This is a real puzzler! Originally posted on microsoft.public.dotnet.framework.windowsforms but no answer found! I have a read-only textBox which shows the results of a selection...
0
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
2
by: johnlim20088 | last post by:
Hi Someone please help me string typ; if (e.Row.RowType == DataControlRowType.DataRow) { typ = e.Row.Cells.Text;
10
by: moondaddy | last post by:
I have a textbox on a webform and based on certain conditions I wanted to prevent a user from editing its text. I dont like the look of the texbox when its disabled and was wondering if there is a...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
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
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.