Questions tagged [datarow]

DataRow is an ADO.Net class that represents a row of a data in a DataTable.

755 questions
-3
votes
1 answer

Access a given cell of a DataTable in C#

It may seem easy but I cannot find the way: dt.Rows[r].Cells[c] does not work for DataTable. This is what I have tried. I do not have other ideas.
user1238784
  • 2,250
  • 3
  • 22
  • 41
-3
votes
1 answer

C# Datatable Duplicate in LiNQ

I have a Datatable with 4 columns: Parent ID ID Qty Qty Type A A12 5 xxx B A32 10 xxx A A12 4 xxx A B23 3 yyy The end result should be: Parent ID ID Qty Qty…
lynx
  • 45
  • 1
  • 7
-3
votes
1 answer

SQL query sometimes return no value

I have a table in my Oracle Database that has an ID and a date which represents periods of the year. Now, i have a C# code that selects the last period of the table: public static Period Get_Last_Period() { DataRow dr =…
user3642846
  • 31
  • 1
  • 1
  • 3
-4
votes
1 answer

Binding selected row to new data row and using import row VB.NET

I am binding a selected row to a new data row which needs to be added to a database. I am using the dt.Importrow(newRow) to add the new datarow to the data table. However, if I make changes to this new row, it also changes the selected row. code…
Fault Spot
  • 3
  • 11
-5
votes
2 answers

Add column to database

I'm working with ASP.NET in Microsoft Visual Studio 2010. When I did my database I had Microsoft Access. Now I don't have it (have tried to get it), so I thought that the best idea is to change my table with code. I want to add a column to my table…
Pichi Wuana
  • 732
  • 2
  • 9
  • 35
1 2 3
50
51