Get dataset Item on Condition using c# -
i have dataset :
itemname |categoryname ------------------ item1 | category1 item2 | category1 item3 | category4 item4 | category5 item5 | category1
i want category name item.
you can either set filter property of datatable or use linq query or loop through rows until find 1 containing wanted item.
Comments
Post a Comment