473,888 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Editable windows form datagrid?

Hi there,

Is there anyone knows how to make windows form datagrid that is bound to an
array editable? How to catch when a cell has been edited?

Thank you for your help.

Nina
Nov 21 '05 #1
3 2131
Hi,

The class contained in the array that is displayed in the datagrid
must implement IEditableObject .

http://msdn.microsoft.com/library/de...classtopic.asp

Example that uses an arraylist instead of an array
http://www.onteorasoftware.com/downl...todatagrid.zip

Ken
---------------------
"Nina" <Ni**@discussio ns.microsoft.co m> wrote in message
news:98******** *************** ***********@mic rosoft.com...
Hi there,

Is there anyone knows how to make windows form datagrid that is bound to an
array editable? How to catch when a cell has been edited?

Thank you for your help.

Nina
Nov 21 '05 #2
Hi Ken,

Thank you so much for your help. I'm new to VB.Net. I don't have problem
binding array to datagrid, but am not sure if I could figure out how to
implement a class to IEditableObject . Could you please give me more specific
information on that?

I appreciate your help greatly.

Nina

"Ken Tucker [MVP]" wrote:
Hi,

The class contained in the array that is displayed in the datagrid
must implement IEditableObject .

http://msdn.microsoft.com/library/de...classtopic.asp

Example that uses an arraylist instead of an array
http://www.onteorasoftware.com/downl...todatagrid.zip

Ken
---------------------
"Nina" <Ni**@discussio ns.microsoft.co m> wrote in message
news:98******** *************** ***********@mic rosoft.com...
Hi there,

Is there anyone knows how to make windows form datagrid that is bound to an
array editable? How to catch when a cell has been edited?

Thank you for your help.

Nina

Nov 21 '05 #3
Hi,

http://msdn.microsoft.com/library/de...atabinding.asp

Ken
-----------------------
"Nina" <Ni**@discussio ns.microsoft.co m> wrote in message
news:19******** *************** ***********@mic rosoft.com...
Hi Ken,

Thank you so much for your help. I'm new to VB.Net. I don't have problem
binding array to datagrid, but am not sure if I could figure out how to
implement a class to IEditableObject . Could you please give me more
specific
information on that?

I appreciate your help greatly.

Nina

"Ken Tucker [MVP]" wrote:
Hi,

The class contained in the array that is displayed in the datagrid
must implement IEditableObject .

http://msdn.microsoft.com/library/de...classtopic.asp

Example that uses an arraylist instead of an array
http://www.onteorasoftware.com/downl...todatagrid.zip

Ken
---------------------
"Nina" <Ni**@discussio ns.microsoft.co m> wrote in message
news:98******** *************** ***********@mic rosoft.com...
Hi there,

Is there anyone knows how to make windows form datagrid that is bound to
an
array editable? How to catch when a cell has been edited?

Thank you for your help.

Nina

Nov 21 '05 #4

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

Similar topics

0
4054
by: Faith | last post by:
I found code on www.codeproject.com. Here is a sample it is called DataGridColumnDropDown. I modified it to use the text box when I wanted it to depended on a certain search criteria. Public Class ExtendedSearchFieldValueColumnStyle Inherits DataGridTextBoxColumn Public WithEvents ColumnComboBox As ComboBox Public WithEvents ColumnTextBox As TextBox
0
1184
by: Andla Rand | last post by:
Hi, Could you help me to understand how datagrid works. I'm trying to make a datagrid editable. Now most of the tutorials I read says that i should turn the Enable ViewState off. Why is that? If i turn this off then i need to support building the datagrid because the datagrid is not persistant. Right?
1
1384
by: mai via DotNetMonster.com | last post by:
hi, i'm sort of a newbie in .net and i'm currently doing my major project. i would like to know if it is possible to have a datagrid that would not be having a database as its datasource? and is it possible to have an editable column in that datagrid wherein it would ask for user input? if so, can anyone be so kind to give me an example or just tell me how to do it? thanks! mai
4
1803
by: Stephan Bour | last post by:
Hi, I have a datagrid databound to a SQL query. I'd like to allow editing of some columns but not all. Is there a way to turn off the conversion of the datagrid cells to textboxes for some columns when the Edit button is pressed? Thank you, Stephan.
2
1414
by: Jesper Stocholm | last post by:
I have a challenge, that I do not seem to be able to solve. I have an "overview"-page that presently displays data from 2 columns in a database table. The users should be allowed to edit data in the table, and I would think, that I could use an editable datagrid for this. However - I cannot find the right article that tells me how to do it. What I can't seem to figure out is this: The database table-row has 7 fields that should be...
0
1352
by: DaveR | last post by:
I have a webform with a two-column datagrid based on an Arraylist. The Arraylist draws the data for the two columns from two different tables in an SQL database. The data is displayed in datagrid as expected but when user clicks the Edit link, the cells do NOT turn into editable text boxes. I actually need only the first column to be editable but any ideas on getting the whole row editable would help at first. Apologies for the amount of...
7
2306
by: Diane | last post by:
Hi- I've been struggling with this problem and none of the fixes posted seem to help out at all. Yet, it seems like such a simple problem... I have a DataGrid, and load it up with data on page load. In my EditCommand event handler I set the editItemindex. All good. Except, the user needs to click twice to get the DataGrid to become editable. It's obvious to me (perhaps worngly) that ASP.NET is storing the data
6
1619
by: Richard L Rosenheim | last post by:
I'm sure it can be done, I haven't been able to find the right article yet. I want to be able to filter the records that the datagrid displays, but still have an editable datagrid. That is, I only want records from the table where "State= 'CA'" are to be displayed, but where the user can still edit/add/delete records. The only examples I have found utilizes DataViews, which apparently are not editable. Can someone point me to the...
1
2421
by: Joe Spears | last post by:
Hi I want to display a datagrid summary of a datatable. The grid will not show all the fields, but when the user selects a row, I want the other controls (text boxes) to also bind to the same row that is selected in the grid. However, the controls will bind to ALL of the fields, where the grid will only show some of them. I want to be able to edit the data using the text boxes, and then update. I also want to be able to add data using...
0
9961
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10882
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10438
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9597
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7990
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6014
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4642
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
2
4243
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3251
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.