.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Fauzul Azmi
Asad Ali
Post New Web Links

Remove Datagrid Default Row Selection Using PagedCollectionView

Posted By: Asim Sajjad     Posted Date: October 09, 2011    Points: 2   Category :Silverlight
 
If you have used Datagrid control then you know by default first Row of the Datagrid control is selected and if you have used the RowDetailTemplate then the RowDetailTemplate of the selected row (which is in this case is the first row) is expanded.So here we will remove the default row selection of the data grid control by using the PagedCollectionView.


View Complete Post


More Related Resource Links

Remove Default Empty Column From DataGrid

  
Need to remove extra default column from the datagrid when you bind datagrid with records. In the Image 1 you can see the extra default column when you bind the data grid control. Sometime it is required to remove that extra empty column.

Remove "I like It" , "Tags & Notes" , RecycleBin and the default search box

  
Hello Is it possible to remove the "I like It" and "Tags & Notes" buttons? , the default "Search this site..." box in the top? And Recycle Bin... I want to remove/hide it so we cant see it on any of our websites. Thanks in advice...

WPF Datagrid with multiple row selection/checkbox column template

  
Hello, I am using the WPF Toolkit Datagrid with a checkbox defined in a template column/template cell. We are using the checkbox template so that selecting the checkbox will also highlight the row in the datagrid. Here is the template definition: <dg:DataGridTemplateColumn MinWidth="50" Width="Auto" Header="" CanUserReorder="False"> <dg:DataGridTemplateColumn.CellTemplate> <DataTemplate> <CheckBox IsChecked="{Binding Path=IsCheckedm, Mode=TwoWay}" /> </DataTemplate> </dg:DataGridTemplateColumn.CellTemplate> </dg:DataGridTemplateColumn> We are allowing multiple row selection in the datagrid and using MVVM (using MVVM Light). We would like to keep a list in the View Model of selected rows as they are selected/unselected. Any suggestions on how we can leverage MVVM to keep the list of selected/unselected elements current. Many Thanks --Sam

Retaining the selection color(default blue Color) for the selected items in ListView when focus is l

  
I am having a Listview in a form. I have added items(images) to the Listview. When i select the item(Image) in the listview , the item(image) is selected with Default selection Color(Blue). In the same form i have other form added to its container.When i tried to click on the controls of other form, the default selection color(blue) is changing to Grey color. For the lisview i am using property HideSelection = false. How i could maintain the default selection color(blue) even in focus leave of listview? Can any one please suggest me a solution or give me a piece of code. Thanks in Advance, Kumar

Retaining the selection color(default blue Color) for the selected items in ListView when focus is l

  
I am having a Listview in a form. I have added items(images) to the Listview. When i select the item(Image) in the listview , the item(image) is selected with Default selection Color(Blue). In the same form i have other form added to its container.When i tried to click on the controls of other form, the default selection color(blue) is changing to Grey color. For the lisview i am using property HideSelection = false. How i could maintain the default selection color(blue) even in focus leave of listview? Can any one please suggest me a solution or give me a piece of code. Thanks in Advance, mskumar.mcp

Default date selection in SSRS with SSAS cube as a source

  

Hi,

 

I am fairly new to SSAS and I am hoping that someone can help me with an issue I am experiencing.  I am create a SSRS report that goes against a SSAS cube.  My cube has a Date dimension with a Fiscal Year - Fiscal Quarter - Fiscal Month hierarchy.  In my report I have created filters for a From Date and a To Date, which are populated with the hierarchy of the Date dimension.

 

I need to default the filters as follows:

 

To Date = current quarter (that is the last quarter with fact data)

From Date = the To Date quarter from the previous year (e.g. if To Date quarter = Q1 2008, then From Date quarter needs to be Q1 2007)

 

I found some SSAS code that allows me to get the index of the last quarter with data, but I am stuck at this point.  I am not sure how I can translate this into a default selection for the To Date SSRS report parameter.  I also realize that there may be a better approach.

 

CREATE MEMBER CURRENTCUBE

OnFocus remove Selection in FireFox

  

Hi,

Let's say we have three buttons. All have some text in it. Now let's imagine we tab our way trough the page and when we get focus on TextBox. Text inside this TextBox get's HighLighted or selected or whatever you wish to call it.

Now my question is, how to deselect that HighLighted text when user tabs his way into Texbox in FireFox? (my example is working in IE)

Please, only JavaScript (no jQuery)!


Demo (Put this on page and display in IE and FireFox. Use tab key to move trough TexBoxes and you will see that in FF the Selection styes):

        <asp:TextBox ID="TextBox2" runat="server" onfocus="RemoveSelection();" Text="TextBox1"></asp:TextBox>
        <asp:TextBox ID="TextBox3" runat="server" onfocus="RemoveSelection();" Text="TextBox2"></asp:TextBox>
        <asp:TextBox ID="TextBox4" runat="server" onfocus="RemoveSelection();" Text="TextBox3"></asp:TextBox>
        <script type="text/javascript">
            function RemoveSelection() {
                if (window.getSelection) {        // Firefox, Opera, Google Chrome and Safari
                    var selection = window.getSelection();
                 

How to remove auto generated right blank column from the wpf datagrid?

  

i have already use this.

AutoGenerateColumns="False"


SharePoint 2010 Custom List default overriding selection

  

We are finding that the second list using a field name from the first list that is defaulted does not take the field entry but uses the default when the record is created.  The First list field does take the change and populate the record.  We need the second list to accept the field change in creating a new record.


Remove Default Links from Quick Launch

  

Hi, i am using Sharepoint 2010 Enterprise RTM trial on Windows Server 2008 SP2.

I have a team site having a quick launch in which i have grouped my List's Links as:

Payroll

 Payroll List

 Payroll Documents

HR

 HR List

 HR Document

By default, when i add a custom list to the site, its link is added to "Lists" link ("Lists" link would appear in the Quick Launch). I want to disable / Hide / remove that link...

Any Ideas ?


Remove Default Gauge Values

  

I have created a DUNDAS gauge within SSRS 2005, which work properly, it display the count value based on a table...

The report uses a parameter which allows user to select School Class Type; based on the parameter the DUNDAS Gauge will show the count of students within that Class....

But when there is no data in the table based on the specific parameter, the gauge shows the default 367 number, how do i remove this?

Thanks


How to change Dynamically SPSite Template Default selection

  

Moderator Note: The original far too long title was in full

"How to change Dynamically SPSite Template Default selection like i have one application page that page should show the site template selected one (this page load am sending Template ID,Tab name) so how should display siteTemplate using Javascript"

--------------------------------------------------------------

Please Replay anybody for my issue still am not able to resolve this issue.

below  code is working when i enable the alert statement(i.e if i remove alert stmt it showing default site template under that tab.

function setCustom()


     var element = document.getElementById("ctl00_PlaceHolderMain_InputFormTemplatePickerControl_ctl00_ctl00_LbWebTemplate");      
     var tempname= document.getElementById("ctl00_PlaceHolderMain_TemplateName").value;  
     var tabs=tempname.split(';')
     var tabslcid="1033&";
     var getTemplates=tabslcid.concat(tabs[1]);   
      GetWebTemplates(getTemplates,tabs[0]);
     var options = element.options;  &nbs

Using PagedCollectionView To Group DataGrid Records Using MVVM

  
When using data grid control sometime we provide grouping of data so that user can see records in groups but the groups are predefine and If you don't want to see the group which we the developer or the client provide then he/she can't change. So here we can use approach to provide the grouping of data to the end user if he/she want to see the data grid records in groups then he/she can arrange records in groups but if he/she don't want to see the he/she can remove the grouping of records.

Best Way to Use PagedCollectionView With Datagrid Control

  
I have used Paged Collection view whenever I need to create application which has data grid control to display the item in tabular format. I used to new collection every time I get data and then create new Paged collection view. In this post I will show you how to use one collection and update it. Which I think is best practice to use the Paged collection view with data grid control.

How to format and update GridView and DataGrid rows using JQuery

  
The behavior described in this question is as expected. When you set text of a cell in grid, it directly affects HTML that is going to be rendered. When you set text value of a cell, it means that you are setting innerText of the cell. The column that GridView creates for command fields (Edit, Delete and Select) are a (anchor) or button elements. So you can see what will happen if you set text value in that cell. It will wipe out those link or button controls and replace them with simple text string.

Use Jquery with repeater, gridview, datagrid

  
Before we talk about jquery inside any itemtemplate (repeater, gridview, datagrid), we need to understand the basic use of jquery functions

Maintain HTML Radio Button Selection Inside GridView After Postback

  
Long time ago I wrote an article about getting the value of the selected RadioButtons inside the GridView control. The code did not addresssed the postback issue which means that the selected radio button was cleared after the postback occurs.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend