|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
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 |