Using C# You won't be able to get the value of the Data Table row values using the column name

Using VB.Net when you want to get a certain field value there is a property called “Item” then you can pass the field name there, then you will get the value.

In C#, “Item” is not available, only “ItemArray” where in it’s the index you need to pass not the column name. Also if you get the instance of the row let say CurrentRow, you’ll have the option to use CurrentRow[“”] … but this won’t give you any value but error.

I think this is a bug that needs to be fixed.

Hi,

In my environment, the above works well as the following.

img20210831-4

Can you share sample project which can reproduce the matter?

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.