Monday, November 11, 2019

Filter DataTable or Find in DataTable

1. string type

 DataRow[] rw = dt.Select("ManuName='masters'");

2. integer type

 DataRow[] rw = dt.Select("Srno=1");


Othe example

if (dt.Rows.Count > 0)
{
    DataRow[] rw = dt.Select("ManuName='masters'");
    foreach (DataRow r in rw)
    {
        if (Convert.ToBoolean(r["view_"]) == true){
        %>
        <li><a href="<%=r["form_name"] %>"><i class="fa fa-circle-o"></i><%=r["form_name"] %></a></li>
        <%}
    }
}

No comments:

Post a Comment

Convert 1.25x speed spent hours convert into normal (1x) speed spent hours

If I run a video with 1.25x or 125% speed till 1 hour 26 minuts, then normal hours will be ?   1 hours 26 minuts convert into hours Total 60...