473,786 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datagrid inline editing in windows application - .Net C#

2 New Member
Hi everybody,
i'm developing a win application using .Net C#.

I need to show to users a list of records extracted from an Access database, and I want users to modify columns of every record via online editing.

Usually i apply this solution in web application, using datagrid control, but I don't know how to do it in windows applications.

Can someone help me?

Thank you,
Andrea Belmonte
www.andreabelmo nte.com
Sep 4 '07 #1
3 4093
Sakalicek
51 New Member
Its the same, isnt it?
Also the datagrid.

Hi everybody,
i'm developing a win application using .Net C#.

I need to show to users a list of records extracted from an Access database, and I want users to modify columns of every record via online editing.

Usually i apply this solution in web application, using datagrid control, but I don't know how to do it in windows applications.

Can someone help me?

Thank you,
Andrea Belmonte
www.andreabelmo nte.com
Sep 5 '07 #2
andreabelmonte
2 New Member
Its the same, isnt it?
Also the datagrid.
Hi Sakalicek,
unfortunatly datagrid in web applications and in windows applications have not the same properties, methods, events.

By now, the simplest way to do what i want is to catch the double-click event on a single datagrid row, so I can pass a value (as a parameter) to a new form that I'll use for update operations...

Can you help me?
Thank you,
Andrea
Sep 5 '07 #3
Sakalicek
51 New Member
Well I dont know many abouot DataGrid in Windows forms, but it could be simillar, yes?
So there would be probably some method to catch doubleClisk on DataGrid row.
So you may catch some DataGridEvents event.

Try something like this:

Item item = (Item) event.Items.Fin dControl("someI D");

For example if you have TextBox there and want to work with it:

TextBox tBox = (TextBox) event.Items.Fin dControl("myTex tBoxID");

or

TextBox tBox = (TextBox) event.Items.Cel ls[index_in_grid].FindControl("m yTextBox");

Let me know if this could help.

Zdenek.

Hi Sakalicek,
unfortunatly datagrid in web applications and in windows applications have not the same properties, methods, events.

By now, the simplest way to do what i want is to catch the double-click event on a single datagrid row, so I can pass a value (as a parameter) to a new form that I'll use for update operations...

Can you help me?
Thank you,
Andrea
Sep 6 '07 #4

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

Similar topics

1
1879
by: nospam | last post by:
Amazon wins patent for ordering forms, Collapsing and Maximizing Form Areas.... NAME OF PATENT Method and system for displaying and editing of information # 6,615,226 http://tinyurl.com/m7v8 **** CLAIM #10 ****
3
4272
by: Bill C. | last post by:
Hello, I know this has been discussed a lot already because I've been searching around for information the last few weeks. I'm trying to implement a DataGridComboBoxColumn class. I've found several examples on the web. They all seem to have problems, though that I've been unable to resolve. The most promising example I have found is at:
3
6083
by: Zürcher See | last post by:
Someone has implemented a Datagrid Button for the Windows.Form?
3
2550
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called "Resource" with the following structure : Resource{,en,fr,es} Yes.. these are the only languages supported actually. A couple of rows in that table would look like this :
0
1533
by: Sabari | last post by:
Hi, I have a DataGrid in my application and i use inline editing to add and update data.I also have a DropdownList in my edit command.When i update the datagrid it works well with windows XP but it dosent update the Dropdown value in windows 2003 that too after the 55th row.One of the problem here is the client needs the datagrid to display 100 records per page.Hope someone can help me out.Thanks in advance Thanks and Regards Sabari.
2
2355
by: Raj | last post by:
Hi, When we are sorting the DataGrid Boolean column the grid is becoming redcross. I have my own PPMIPDataGridBoolColumn class inherited from System.Windows.Forms.DataGridBoolColumn. In this inherited class I have one DataGridValueChangedEventHandler event handler. I am overriding Edit() to know the current state of the cell. I am overriding Paint() to know the if the user has been editing the cell. I am also overriding the Commit() to
0
3504
by: Dave | last post by:
Tried posting in the Winform Forum without much luck, so posting here... After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row that is after the newly added row without getting bizarre results. I have added the full code for the test below. Create a project drop in the code and run. There is nothing crazy about the code. I used the designer to add the dataset and to do the...
7
1787
by: Joe | last post by:
Hi, I’m new to asp.net. I want to create an asp.net page that allows user to edit the data. I have pasted my code below. I am able to display the data in a datagrid. At the bottom of the page there are two buttons “Save Changes” and “Cancel”. When “Save Changes” button is clicked saveRec function is called. But for some reason inside saveRec function the value of the textbox is not visible. The line Label2.Text =...
1
1260
by: Jean-Claude Bertrand | last post by:
Hi! Windows of the application IO have to built (my first one in vb.Net) is made from 2 part: a) A grid wich will be used only to display the main information of the current record (so the grid must select the entire row and not allow editing). I have selected the datagrid so far and succed after many research to allow only entire row selection with this help http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q792q
0
9647
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...
0
9491
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10163
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10104
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
9959
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...
1
7510
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
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4063
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
3
2894
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.