How do you retrieve the values from tables by specifying the coloumn and row no in net?

1 answer

Answer

1185931

2026-04-15 16:45

+ Follow

In .NET, you can retrieve values from a DataTable by specifying the column and row number using the Rows and Columns collections. First, you access the specific row using DataTable.Rows[rowIndex] and then the desired column using DataRow["ColumnName"] or DataRow[columnIndex]. For example, to get a value from the first row and the second column, you would use dataTable.Rows[0][1]. Ensure that the indices are within the bounds of the DataTable's rows and columns to avoid exceptions.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.