Hi, I’m working on a project where I have to use data table and compare a particular column value of current row item with the next/previous row’s column value. Unable to do that, Kindly help me accomplish.
Thanks,
Prabir
Hi, I’m working on a project where I have to use data table and compare a particular column value of current row item with the next/previous row’s column value. Unable to do that, Kindly help me accomplish.
Thanks,
Prabir
Hey @prabirs
You can follow below steps:
Regards…!!
Aksh
Thanks aksh for ur help. It’s working.
Hello Akshay,
If I use above method I am getting error as object cannot be converted to string, below is screen shot please help.
Try converting it to string, as the error shows it is object and you are trying to assign it to a string variable.
Ex: dt.Rows((rowIndex))(“Invoice No.”).ToString
It worked Sasi, some times we (especially I) miss basics thanks.