PC Review


Reply
Thread Tools Rate Thread

datagrid item retrieval

 
 
mark
Guest
Posts: n/a
 
      4th Aug 2003
I want to be able to retrieve the data in my datagrid on a
postback but I can't find a way to do this. Can anyone
help?
 
Reply With Quote
 
 
 
 
AlexB
Guest
Posts: n/a
 
      4th Aug 2003
It sounds like you want to capture the selected row on
postback? There's a property called
Datagrid1.SelectedItem that contains the selected row.
You can access it like so...

with Datagrid1
If .SelectedIndex <> -1 then
s = dtgPeriods.SelectedItem.Cells(3).Text()
End if
end With


>-----Original Message-----
>I want to be able to retrieve the data in my datagrid on

a
>postback but I can't find a way to do this. Can anyone
>help?
>.
>

 
Reply With Quote
 
MSFT
Guest
Posts: n/a
 
      6th Aug 2003
You can get a cell's text with following expression:

DataGrid1.Items(RowNumber).Cells(ColumnNumber).Text

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to get data from parent datagrid item from child datagrid dataitem Skowronek Microsoft ASP .NET 2 16th Sep 2005 01:36 AM
DataGrid retrieval =?Utf-8?B?UmFnaA==?= Microsoft Dot NET Framework Forms 0 21st Jun 2005 04:49 AM
'Hard Deleted' item retrieval Cody Microsoft Outlook 1 4th Aug 2004 01:52 PM
'Hard Deleted' item retrieval Cody Microsoft Outlook Discussion 1 4th Aug 2004 01:52 PM
DataGrid Retrieval? Supramanian Murugesan Microsoft C# .NET 1 15th Jul 2003 01:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:03 AM.