Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > C++

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-27-2009, 04:10 AM
Lennie Lennie is offline
Registered User
 
Join Date: Jan 2005
Location: New Zealand
Posts: 201
Visual C# Net 2003 , Retrieve DataGrid data

Hi there,
I need help to extract data from a specific click row on the DataGrid to display the data on the following textbox (txtFirstName, txtLastName, txtPurchaseOrder). Tried using this script listed below and it's not working.


private void dataGrid1_Navigate(object sender, System.Windows.Forms.NavigateEventArgs ne)
{
int intRow = dataGrid1.CurrentRowIndex;
dataGrid1.Select(intRow);

txtFirstName.Text = dataGrid1.CurrentRowIndex(dataGrid1.CurrentCell(0));
txtLastName.Text = dataGrid1.CurrentRowIndex(dataGrid1.CurrentCell(1));
txtPurchaseOrder.Text = dataGrid1.CurrentRowIndex(dataGrid1.CurrentCell(2));
}
__________________
Cheers,
Lennie
Reply With Quote
  #2  
Old 11-12-2009, 08:00 PM
Lennie Lennie is offline
Registered User
 
Join Date: Jan 2005
Location: New Zealand
Posts: 201
Thumbs up resolved - Visual C# Net 2003 , Retrieve DataGrid data

My C#.Net 2003 Window application is now runnung. Have resolved the problem of retrieve data from DataGrid.

Thanks to all who shared your knowledge with me. Appreciat that very much.
This FORUM AND MEMBERS are awesome.
__________________
Cheers,
Lennie
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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 Off
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to retrieve data part2 harj .NET 14 04-29-2008 12:46 PM
Problem while creating a new project in Visual Studio 2003 karang ASP.NET 2 05-21-2007 02:22 AM
DataGrid - Enter data in a cell at run time William Gaddam VB Classic 1 05-02-2000 10:19 PM


All times are GMT -4. The time now is 01:24 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.