row

How to remove DataGrid's blank row when binding to a ObservableCollection<T>?

Hi guys I'm getting nuts here with this: ObservableCollection<Employee> list = new ObservableCollection<Employee>(); dgEmployees.ItemsSource = list; When you debug the list variable, it's empty (list.Count =0), but then I bind it to a DataGrid (WPFToolkit), it shows me a blank row. In immediate window, for dgEmployees.Items it's sho...

table UI design

There are 4 rows in a table to user to fill. The first row MUST NOT be empty. The others are optional. How to create the look and feel to announce that? Should be in pure html and css plus jQuery ...

Get Alternating Row Status From DataGridView

Hi, if i change the backcolour of a datagridviewrow that belongs to a datagridview control using alternating row colours and i want to programatically change it back, how do i know if the row was a normal row or an alternating row so i know what colour to change it back to? is there a property i have missed? ...

Jquery select div in a row

Hiya all, I'm really stuck .. I need urgent advice :D here is my html : <!-- Beginning of ROW !--> <div id="row1"> <div id="entry"> free <span>some text</span> <p>DKK</p> <input type="radio" name="red<% Response.Write(counter); %>" id="radio" value="0" /> </div> <div id="entry"> week <span></span> <p>DKK</p> <input t...

jquery tablesorter plugin - retain alternative row colors

i took an html table that i am applying alternative row colors and i just added jquery table sorter on it so users can sort the table. the issue is that the alternative row colors are all messed up now as (based on the sorting) there are multiple rows with the same backcolor . . is there anyway to reset the alternative row color with j...

c# How to hide a row in a DataGridView with DataSource

I have a datasource (BindingList) with many Users, but there are some users I don't want to display in my DataGridView. Is it possible to hide them. I can't find events that works. RowsAdded sometimes hides worng rows. ...

SQL - Reference current row in a computed column with SELECT

Hi, I have a table that represents the parameters of a contract - including their change over time through addendums. The first addendum is a "special" addendum representing the parameters when the contract was first signed. Here's how the table should look like: ID ProjectID BeginDate DeadlineMonths DeadlineDate 1 20 20-12-2...

Selectable grid row in asp.net with C# like istockphoto

Hi, I'm building a website for a friend and would like to know how hard is it to code a selectable menu like http://www.istockphoto.com/stock-photo-8544108-beauty-with-hat.php - the one on the right where you choose picture size. I would like to create something similar in asp.net c#. I searched for 3 hours on google and couldn't find ...

How to increment a selected table row on iPhone

Okay, I am about getting completely nuts here... :-( I've been trying for weeks now but to no avail. So if someone was able to help me with the following, that would be great! So here is what I'm trying to do. My app is basically a rss reader. The topics of the rss entries are displayed in a table view. Tapping on an entry opens a web v...

How to convert vector from 1-row table in R

In R, I have a 1-row table. How do I convert that to a vector? Specifically, the table is this: 0 1 2 3 4 21 35 46 62 36 I've tried bracket notation but to no avail! ...

C# Silverlight Datagrid - Row Color Change

Hey! How do you change the color of the silverlight datagrid rows?! I've tried this but it doesn't seem to work how I want it to...Random rows get colored incorrectly: void dataGrid1_LoadingRow(object sender, DataGridRowEventArgs e) { var c = e.Row.DataContext as Job; if (c != null && c.Status.Contains(...

Row based Time Zones in Rails 2.3.4

What is the best way to handle the following situation: We have "admins" who create "events". These events can be nationwide, ie: different time zones. As of now there is a select menu with the current list of US time zones. There is a corresponding column in the database table, for the time zone selected. This is so the admin can selec...

SSIS: How to read flatfile and add a new row to the file.

Hi! I have a text file and needs to read it and change some text and add some new text in a new row. How do I add e new row with some text in it? I now use a script component to read existing rows and change in them but I can't add a new row :-( Thanks in advance Regards Brno ...

Grouped UITableView Footer Sometimes Hidden On Quick Scroll

OK, this one is a puzzler. There is one similar post but it's not similar enough to count, so I'm posting this one. :) I've got a grouped UITableView with a header and footer. The footer includes two UIButton views, side-by-side. Nothing major. Now … there is a toggle button in a UIToolbar at the bottom for more/less info in this table...

DataTable Cancel Row Delete

Hi, I have a windows form which has a DataGrid control (Not DataGridView) on it. The DataGrid control is bound ot to a DataTable. Everytime the user presses delete button on one of the rows on the grid, I want to check a condition and stop the row from being deleted if the condition is false. I have subscribed to the RowDeleting ev...

A little fuzzy on getting DISTINCT on one column?

I've seen a few different versions of this question but having difficulty applying it to what I need... MS SQL Server 2008 query: SELECT Receipts.ReceiptID, Receipts.UserID, Receipts.UserCardID, FolderLink.ReceiptFolderLinkID FROM dbo.tbl_ReceiptFolderLnk AS FolderLink INNER JOIN dbo.tbl_Receipt AS Receipts ON FolderLink.ReceiptID...

Selecting rows in jQuery

I am a beginner in jQuery. I have a table with multiple rows, how do I select next row or previous row after selecting a particlar row? ...

Split data into two columns using CSS

What I wanna create is page that fetches results from my DB and display them into two columns like this using CSS (unless theres a better way)... Row 1 | Row 6 Row 2 | Row 7 Row 3 | Row 8 Row 4 | Row 9 Row 5 | Row 10 The second column should be empty if theres no more than 5 rows. ...

How to add a ContextMenu depending on which WPF DataGrid row is right-clicked?

I need to display different options in a ContextMenu depending on which row of a WPF DataGrid is right-clicked. My initial ideas were to accomplish this through either binding or handling a mouse click event, but I haven't had success with either strategy so far. Any help would be most appreciated! Thank you! Denise ...

T-SQL: How can I split comma seperated values from a column to rows?

Hi everbody, I have the following table (the number of the references is variable): Id | FK_ID| Reference | ----------------------- 1 2100 GI2, GI32 2 2344 GI56 And I need the following result: Id | FK_ID| Reference | ----------------------- 1 2100 GI2 2 2100 GI32 3 2344 GI56 Is there any short way to tr...