I'm working on a Window based application. I have 2 textboxes and a datagrid

on a form. The textboxes are databind to the same datasource as datagrid. I

want to use the following to update the dataset but I am not suer if the

datagrid's current row number does corresponds to the row number in the

dataset table that I want to update. Appreciate it if someone can give me

answer to this.

Thanks, Alpha

private void txtLastOdometer_Validated(object sender, System.EventArgs e)

dsMaintDued.Tables["MaintenanceDued"].Rows[dgMaintDued.CurrentRowIndex]["LastOdometerReading"] = txtLastOdometer.Text.ToString();

}

private void dtpLastService_Validated(object sender, System.EventArgs e)

dsMaintDued.Tables["MaintenanceDued"].Rows[dgMaintDued.CurrentRowIndex]["LastOdometerDate"] = dtpLastService.Value.ToString();

}

1. Numbering the rows in a dataset by first grouping the rows and the

2. Can we get the current page number, or just row number?

Hello, friends,

I need to get the current page number of an opened .xls file using

Microsoft.Office.Interop.Excel. I am new to these. I looked up the

methods/properties but did not know which one to use.

Can we actually get the current page number, or we can only get the row

number? If it is the later, how?

Thanks a lot.

3. Deleting 3 rows when current row number is unknown

4. How to get the current caret row number and column number in a rich text box?

5. Find current row number and select row

6. show number of days between current row and next row

7. Adding a row to dataset adds two rows to datagrid

8. Problem with text field in datagrid when the number of rows exceeds the datagrid size

9. Referencing Dataset row not Datagrid row

10. Displaying count of # of rows in a dataset and/or rows in a datagrid?

11. Problem with text field in datagrid when the number of rows exceeds the datagrid size

12. translate current cell (row, column) in sorted datagrid to corresponding row/col in datatable

13. DataGrid Component | Displaying columns of a DataSet as Rows in a DataGrid ?

14. how to assign a sequential row numbers for each row in a query

1 post • Page:**1** of **1**