Get variable in select


in tha place of 2 i want to pass a variable from which i pass the id value

Try this @ashishmani

Dt.Select("""[id]="+ text +"""")(0)(0).ToString



I hope in select there won’t be two double quotes at the end of the expression
That is the expression would be like

Dt.Select("[id]= ‘ “ + variablename.ToString + ‘ ")(0)(0).ToString

In message it is showing as “[Id] = 3”
But select method takes input as [id] = 3

Cheers @ashishmani