Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a web grid and i want to add a drop down column to that when ever i clicking on drop down any where in the web grid its taking the first row value not that respective row

it should take the particular row value not the first row drop down value

What I have tried:

new WebGridColumn{
ColumnName="IsActive",
Header="IsActive",
Format = @<text>


<select class="edit" id="txtStatus" value="@item.Isactive" >
<option value= "true" >true</option>
<option value= "false ">false</option>
</select>



var status = $("#txtStatus option:selected").val();

for getting the dropdown value
Posted
Updated 16-Feb-16 1:37am
v2
Comments
Member 12300401 16-Feb-16 7:36am    
var status = $("#txtStatus option:selected").val();

for getting the dropdown value

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900