When i press btn_save all changed rows in my grid get saved except the last
editing row...
I want my btn_Save to end editing in the datagrid.. so if user didn't press
"enter" after editing last cell of the current row, I could force this row
to be saved in the datasource.
help plz 3 3805
Hi Islameguy,
I think if you call DataGrid.EndEdit in your button event and speficy false for shouldAbort the changes are saved.
On Sat, 17 Sep 2005 11:14:34 +0200, Islamegy <is******@yahoo.com> wrote: When i press btn_save all changed rows in my grid get saved except the last editing row...
I want my btn_Save to end editing in the datagrid.. so if user didn't press "enter" after editing last cell of the current row, I could force this row to be saved in the datasource.
help plz
--
Happy coding!
Morten Wennevik [C# MVP]
i tried it and didn't work with shouldAbort =false or true...
dataGrid2.EndEdit(dataGrid2.TableStyles[0].GridColumnStyles[dataGrid2.Curren
tCell.ColumnNumber],dataGrid2.CurrentRowIndex,false);
have any other ideas??
"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:op.sw8qcxfhklbvpo@stone... Hi Islameguy,
I think if you call DataGrid.EndEdit in your button event and speficy
false for shouldAbort the changes are saved. On Sat, 17 Sep 2005 11:14:34 +0200, Islamegy <is******@yahoo.com> wrote:
When i press btn_save all changed rows in my grid get saved except the
last editing row...
I want my btn_Save to end editing in the datagrid.. so if user didn't
press "enter" after editing last cell of the current row, I could force this
row to be saved in the datasource.
help plz -- Happy coding! Morten Wennevik [C# MVP]
Not sure what the problem might be. I created a simple datagrid sample using a database as source and updating using SqlDataAdapter.Update(DataSet). Any DataGrid cell being edited is saved when the Update button is pressed. I used VS.Net 2003 and MSDE, with an autoconfigured SqlDataAdapter.
Could you give us a code sample demonstrating the problem? How do you update the data? How do you display/edit the data? What kind of datasource do you use?
On Sat, 17 Sep 2005 12:39:04 +0200, Islamegy <islamegy#@#yahoo#.#com> wrote: i tried it and didn't work with shouldAbort =false or true...
dataGrid2.EndEdit(dataGrid2.TableStyles[0].GridColumnStyles[dataGrid2.Curren tCell.ColumnNumber],dataGrid2.CurrentRowIndex,false);
have any other ideas??
"Morten Wennevik" <Mo************@hotmail.com> wrote in message news:op.sw8qcxfhklbvpo@stone... Hi Islameguy,
I think if you call DataGrid.EndEdit in your button event and speficy false for shouldAbort the changes are saved. On Sat, 17 Sep 2005 11:14:34 +0200, Islamegy <is******@yahoo.com> wrote:
> When i press btn_save all changed rows in my grid get saved except the last > editing row... > > I want my btn_Save to end editing in the datagrid.. so if user didn't press > "enter" after editing last cell of the current row, I could force this row > to be saved in the datasource. > > help plz > > > -- Happy coding! Morten Wennevik [C# MVP]
--
Happy coding!
Morten Wennevik [C# MVP] This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
by: Amadelle |
last post by:
Hi all and thanks in advance for your help,
I have a problem with capturing the changed value of a text box in a datagrid. The datagrid is populated based on a dataset and I am using template...
|
by: GregM |
last post by:
I have a read only datagrid that is designed to coordinate itself with
textboxes. When the user clicks on a row in the datagrid, detailed
data for that row is displayed for editing in the...
|
by: Glenn Owens |
last post by:
I have a DataGrid web control which I've dynamically populated with
template columns to be used for bulk-editting. Generally, all of the
columns are textbox and/or dropdownlist child controls.
...
|
by: Jim Heavey |
last post by:
Trying to figure out the technique which should be used
to add rows to a datagrid. I am thinking that I would
want an "Add" button on the footer, but I am not quite
sure how to do that. Is that...
|
by: uiranejeb |
last post by:
Hi everybody,
I am an asp.net datagrid that have all the rows editable. An user can update
any column from datagrid. I'm trying to find a way to update only the rows
that were updated. How can...
|
by: Amadelle |
last post by:
Hi all and thanks in advance for your help,
I have a problem with capturing the changed value of a text box in a
datagrid. The datagrid is populated based on a dataset and I am using
template...
|
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...
|
by: hanusoft |
last post by:
This is an example of editing in DataGrid and Default Paging
http://www.hanusoftware.com
Html Design Code : -
<asp:DataGrid id="DataGrid1" DataKeyField="id" runat="server" Height="224px"...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
|
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: 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,...
| |