selection

Making Silverlight Datagrid Cells not selectable

I have a DataGrid which I am binding to a PagedCollectionView which is Grouped and Sorted. The contents of the DataGrid are not editable although one column contains a clickable link. I have restricted the SelectionMode of the DataGrid to DataGridSelectionMode.Single which stops multiple Row selection which is good. But the selected row ...

Stop navigation to current control on validation error. How?

I have a problem with my WPF application. I have a datagrid (Wpf Toolkit), I have to manage a Row validation...if validation result is false I would that the other row isn't selectable. Therefore I have to block the selection to current row that I edit. How can I do? Any ideas? ...

How do I access the selected rows in Access?

Hi community, I have a form which includes a data sheet. I would like to make it possible for a user to select multiple rows, click on a button and have some sql query run and perform some work on those rows. Looking through my VBA code, I see how I can access the last selected record using the CurrentRecord property. Yet I don't see h...

selecting textareas

Hi, I am trying to select specific element types in a row and change their attribute, specifically the id and name attributes. Using the following works fine for single line text input boxes: $('input:text', newRow).attr('id','os' + newRowNum ).attr('name','os' + newRowNum ); however, when I change the html to: <td><textarea name="o...

Smarty Section Making the selected Link Bold

Hello, How can i make the selected link from the List below, bold, that you see you are on Page ex. 3 or 5 With this code if you click on a Link you dont know on which page you are. The smarty code looks like this; {section name="sitelinks" start=0 loop=$total->sitelinks} <span class='tag'> <a href='/member/{$campaign->id}?start={$...

How to set an item in CListCtrl as selected?

ClistCtrl is set to single selection & single column in report view with no header. I have tried SetItemState(0,LVIS_SELECTED,LVIF_STATE) and SetSelectionMark(int index) but these don't work. ...

bubble of selected item while searching in UISearchBar like in mail app

I would like to implement something close to what happen in mail app in iphone when you enter new address in "To:" field: when you start searching a list of matching addresses appear (this I know how to do) and when you select one then a bubble with the address appears and you can go on adding addresses (this I don't know hot to do). An...

How to change out-of-focus text selection color in Xcode?

Okay, I'll bite. I've got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, however, the results list stays in focus and the found text remains out of focus, using a different background color. This color is extremely h...

How do I get the selected text in desktop application using python-dbus?

For example, I open a pdf file or a web page in gnome, use mouse double click some text, so a word is selected, how can I get this word in a background running daemon written with python-dbus? Some simple but working piece of script is appreciated greatly. Thanks! ...

can any 1 explain me the use of index_of_min in the below function used for selection sort..?

void selectionSort(int array[], int n) { for(int x=0; x is this function written correct..? ...

How to Jquery show only a particular td from this table structure?

Hi Guys, i'm a total noob when it comes to Jquery and i've been trying to learn it but as of now i still don't know how to query this one out. I have a table structure that looks like this: <table class="wba_main_table" align="center" border="0" cellpadding="0" cellspacing="0" width=""> <tbody> <tr> <td style="d...

How to programically select top row of JQGrid?

How does one programically select the top row of a JQGrid. I want to have the top row already selected when it is opened on the page. My grid is sorted by a descriptive column so the first row's id could be any number. I know the method to use I just don't know how to get the rowid for the top (first) row. The method is: jQuery("#mygri...

JList containing JCheckBox and a String, with non ctrl click selection?

Hi all, Been a while since I posted on here, and now I am at a point where I find myself stuck yet again. For my assignment at uni, we have been asked to create an address book application. It is going well, and it's nearly completed, however one part of the project, which is purely my preference, eludes me. I'm not asking for help on ...

How can I select multiple rows in UITableView

Hi I want to display some selected contacts in a list and then I need a feature to select multiple contacts at a time and then on clicking a button it should trigger an email to the selected contacts. For this I am using UITableView to display the contacts but I am not able to find any way to unable the multiple selection for UITable...

Statistical mathematics issues

Hello, I'm developing a Texas Hold 'em hand-range equity evaluator, which evaluates hand-distributions with Monte Carlo -simulation. I've faced two annoying problems which behaviors I cannot give any reason. Problem #1: In a nut shell, the evaluator works by first picking up hands from player's hand-distributions. Say, that we have th...

Click and drag selection box in WPF

Is it possible to implement mouse click and drag selection box in WPF. Should it be done through simply drawing a rectangle, calculating coordinates of its points and evaluating position of other objects inside this box? Or are there some other ways? Could you give a bit of sample code or a link? ...

Is selection sort an efficient algorithm?

I know it's a quadratric time algorithm, but how does it compare to other sorting algorithms, such as QuickSort or Bubble Sort? ...

How do I figure out which items' selected state was changed in a DataGridView?

I have a DataGridView that has MultiSelect turned on. When the SelectionChanged event is fired, I'd like to know what items were newly selected and which items were newly deselected. For instance, if you have multiple items selected (by Ctrl-clicking) and then you release the Ctrl key and select a single item, I'd like to know which it...

WPF "Selected" Property of Custom Control or "Logical Focus". What should be used?

In my WPF project I have a custom control which is visually represented by a rectangle object. In XAML I put a number of rectangles based on this custom control. User should be able to select a group of these rectangles by mouse clicks and then do some actions with these selected rectangles. How I should implement the possibility of sel...

Silverlight 3 Datagrid: Get row/item on MouseOver

I have a bound DataGrid and various other controls(external to the datagrid) that show more details about the selectedrow in the datagrid. This is easy to do with databinding or handling the SelectionChanged event on the datagrid. However, how do I do this without requiring the user to select a row - eg on 'mouseover' can I change the s...