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

Datagrid inline editing in windows application - .Net C#

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.andreabelmonte.com
Sep 4 '07 #1
3 4073
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.andreabelmonte.com
Sep 5 '07 #2
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
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.FindControl("someID");

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

TextBox tBox = (TextBox) event.Items.FindControl("myTextBoxID");

or

TextBox tBox = (TextBox) event.Items.Cells[index_in_grid].FindControl("myTextBox");

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
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 ...
3
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...
3
by: Zürcher See | last post by:
Someone has implemented a Datagrid Button for the Windows.Form?
3
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...
0
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...
2
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...
0
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...
7
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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
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...
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...

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.