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

Problem with Datagrid

Hi..friends
I am .NET developer and using ASP.NET
I have one problem with datagrid.

I put one datagrid on the webform. When the user clicks on the Edit link
then it shows some textbox in the the colunm. But when i get click the Update
button then the page is submited (posted back) to server. But the modified
text of the datagrid is not avaiable while post back.

Only the old values are available.

What shoul i do? is there any setting or property i have to change?

Please suggest me as soon as possible

Nov 22 '05 #1
2 1235
Hi,

Are you checking the IsPostBack property properly?

Check out this link
http://msdn.microsoft.com/library/en...dwritedata.asp

HTH,
Rakesh Rajan

"Ashish Patel" wrote:
Hi..friends
I am .NET developer and using ASP.NET
I have one problem with datagrid.

I put one datagrid on the webform. When the user clicks on the Edit link
then it shows some textbox in the the colunm. But when i get click the Update
button then the page is submited (posted back) to server. But the modified
text of the datagrid is not avaiable while post back.

Only the old values are available.

What shoul i do? is there any setting or property i have to change?

Please suggest me as soon as possible

Nov 22 '05 #2
you need to have a separate sub that loads values into the DataGrid in the first place. once you modified and saved values into your databse you need to call the sub loading values and rebuild the DataGrid.

private Sub GetData()

Read and bind your data here

End Sub

Private Sub dgData_UpdateCommand(.....)

update code

GetData() ' this will rebind your DataGrid with your freshly modified data

End Sub

Hopwe this helps

Phil

"Ashish Patel" <Ashish Pa***@discussions.microsoft.com> wrote in message news:32**********************************@microsof t.com...
Hi..friends
I am .NET developer and using ASP.NET
I have one problem with datagrid.

I put one datagrid on the webform. When the user clicks on the Edit link
then it shows some textbox in the the colunm. But when i get click the Update
button then the page is submited (posted back) to server. But the modified
text of the datagrid is not avaiable while post back.

Only the old values are available.

What shoul i do? is there any setting or property i have to change?

Please suggest me as soon as possible

Nov 22 '05 #3

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

Similar topics

2
by: Chris Plowman | last post by:
Hi all, I was wondering if anyone can help me with a really annoying problem I have been having. I made a derived datagrid class that will select the row when a user clicks anywhere on a cell...
0
by: Emerson | last post by:
The following assumes a System.Windows.Forms.DataGrid with a System.Data.DataTable set as the DataSource. I'm programming in C# Here's my scenario I click in a cell on a DataGrid. I enter some...
5
by: Jeff | last post by:
IDE: VS 2003 :NET OS: XP Pro My app have a form with a tab-control on it. The tab-control have 2 tabpages. One of the tabpages displays a datagrid, and the other tabpage displays details (order...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
2
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click...
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:
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
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: 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
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...
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
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
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...

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.