Hello all,
Im trying to add row in c# im trying to add row {id,name} but always expecting semi comma!
what is the correct formatting
Hello all,
Im trying to add row in c# im trying to add row {id,name} but always expecting semi comma!
what is the correct formatting
Hi,
Can you try as the following?
new object[] {id,name}
Regards,
Hi @Hazem_Saleh
To add a row with multiple values, such as {id, name}
, you can use either an array or a list to hold the values, like this:
string[] row = new string[] { id, name };
or
List<string> row = new List<string> { id, name };
Hope this helps,
Best Regards.
if you want a c# code, then try as below,
public class Row
{
public int Id { get; set; }
public string Name { get; set; }
}
// Creating a new row object
var row = new Row
{
Id = 1,
Name = “John”
};
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.