943,578 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 8151
  • ASP.NET RSS
Aug 4th, 2004
0

Use of DataGrid

Expand Post »
I am new to ASP. I have populated a DataGrid with rows but cannot find any property setting (like Readonly=False or True) that let's me update rows directly in the grid. Is such a function not supported in ASP ? If this is the case how would I design a routine where I have a grid and where user can select rows to be update ?? Thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
snufse is offline Offline
8 posts
since Jul 2004
Aug 4th, 2004
0

Re: Use of DataGrid

ASP.NET Syntax (Toggle Plain Text)
  1. DataTable dt = dataGrid.Table["People"];
  2. dt.Rows[4]["Colum 4"].Text = "BLAH!";
That is asuming you have a datagrid with a table named "People" and in that table you have a column named "Column 4". That would change the text in that particular cell. (Row 4, Column 4)
Reputation Points: 46
Solved Threads: 2
Junior Poster
Iron_Cross is offline Offline
117 posts
since Jul 2003
Aug 4th, 2004
0

Re: Use of DataGrid

Programatically I believe this can be done. But what about user changed values (updateing, inserting and deleting) rows. Is this possible in ASP ?? Thanks.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
snufse is offline Offline
8 posts
since Jul 2004
Aug 4th, 2004
0

Re: Use of DataGrid

Yeah, use DataBind() you may have to read up on it. But bind to a certain source, say an ArrayList, then just update the ArrayList, after that just do dataGrid.DataBind() and you rows and columns will be updated.
Reputation Points: 46
Solved Threads: 2
Junior Poster
Iron_Cross is offline Offline
117 posts
since Jul 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Regarding ASP.NET worker process
Next Thread in ASP.NET Forum Timeline: ADO.NET Specified cast is not valid





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC