how to check that gridview control in asp.net?

Posted by Sheeba under ASP.NET on 4/5/2011 | Points: 10 | Views : 1185 | Status : [Member] | Replies : 1
Hi

gridview control i have one column name featurenum...its vale is 17...i want to check this num 17 is already there are not ...


Hw to check


Thanks




Responses

Posted by: Laghaterohan on: 4/5/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Sheeba,

You can try out following code to access the value of the particular column within a gridview control and then carry on with your logic
foreach(Gridviewrow row in Gridview1.rows)

{
row.Cells[//cell no of the column featurenum].Text = "17";
}


Thanks!

Best Regards,
Rohan Laghate

Sheeba, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response