473,322 Members | 1,778 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,322 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 1232
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.