2
Answers

All about merge sort in C++

Photo of Joe Wilson

Joe Wilson

10y
1k
1
I mean I want to know about the code of merge sort and space and time complexities and how can I improve the merge sort to decrease the space complexity, please guide me.

Answers (2)

0
Photo of Bhushan Gawale
NA 9.7k 1.1m 10y
0
Photo of Mrunal Bhandarkar
NA 72 24.8k 10y
WPF: I need to check all the checkboxes when I click select all check box in the header of the datagrid in WPF.
0
Photo of Manish Kumar Choudhary
NA 14.3k 2.2m 10y
 <script type="text/javascript">    // Let's use a lowercase function name to keep with JavaScript conventions    function selectAll(invoker) {   
    // Since ASP.NET checkboxes are really HTML input elements      
  //  let's get all the inputs         var inputElements = document.getElementsByTagName('input');    
    for (var i = 0 ; i < inputElements.length ; i++)
 {            var myElement = inputElements[i];             // Filter through the input types looking for checkboxes            if (myElement.type === "checkbox") {                // Use the invoker (our calling element) as the reference                //  for our checkbox status      
          myElement.checked = invoker.checked;      
      }       
}   
}

</script> <!-- assuming that SqlDataSource1 is the datasource for my GridView -->

<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1">    <Columns>        <asp:TemplateField>            <AlternatingItemTemplate>                <asp:CheckBox ID="CheckBox1" runat="server" />            </AlternatingItemTemplate>            <ItemTemplate>                <asp:CheckBox ID="CheckBox1" runat="server" />            </ItemTemplate>            <HeaderTemplate>                <asp:CheckBox ID="cbSelectAll" runat="server" Text="Select All" OnClick="selectAll(this)" />            </HeaderTemplate>            <HeaderStyle HorizontalAlign="Left" />            <ItemStyle HorizontalAlign="Left" />        </asp:TemplateField>    </Columns></asp:GridView> 
0
Photo of Anoop Kumar Sharma
NA 12.7k 5.6m 10y
Hi Mrunal Bhandarkar,
Check out these links:
http://www.aspsnippets.com/Articles/Implement-check-all-checkbox-functionality-in-ASPNet-GridView-control-using-JavaScript.aspx

http://www.dotnetgallery.com/kb/resource18-Gridview-header-checkbox-select-and-deselect-all-rows-using-client-side-Jav.aspx.aspx

Hope this will help you.
..................................................................................................................................
If this post is useful then mark it as "Accepted Answer"