row

Find Tabel Row Index using jQuery

Hello All, I'm an intermediate user in jQuery. I know to find the rowIndex of a table using jQUery, but my scenario is a different one. My table(GridView) consists of 20 columns and each column with different controls like textbox, dropdownlist, image, label. All are server side controls in each row. I bind the gridview with the records...

Select row after refreshing DBGrid

Well, some kind of n00b question from me. I've surfed the net and similar questions here but haven't found any right answers for such simple (as I thought) problem. I have a DBGrid. I select one row and make some actions with another data linked to this row. After I finished, my DBGrid being refreshed and selected row resets to first. I...

Add a row dynamically in TableView of iphone

Hi all, I need to add a new row in the tableview when i select a row in the table. Am i suppose to use the following method??? - (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation What shoud i write inside the method to add a new row.? Please do help me, Thanks in advance Shibin....

iPhone + UITableView + row height problem

Hi, I am setting the row height of my UITableView using following code [tableView setRowHeight: 100.00]; I am using the single line as separator in the UITableView. Eventhough setting the height above, height of row does not get change. Please help me ...

using regex in php to add a cell in a row

As usual I have trouble writing a good regex. I am trying to make a plugin for Joomla to add a button to the optional print, email and PDF buttons produced by the core on the right of article titles. If I succeed I will distribute it under the GPL. None of the examples I found seem to work and I would like to create a php-only solution....

Set a Row to Bold in Listview in WPF

I have a Listview like the Address book in outlook. and it looks like Name Phone ---------------------------- Everyone User1 12345 User2 54321 User3 98765 I need the row "Everyone" to Bold letters. And my listview is <ListView Name="lvContacts" Grid.Row="2" Grid....

jQuery - How to filter rows onclick?

I'm trying to figure out how to filter a table based on the row class when I click a button. I've been looking at various jquery plugins, but none of them seem to do what I need it to do. Some have textboxes that filter, etc., and I've tried adapting the code but frankly, I'm just making a great big mess... Help? I have a table that l...

Random MySQL row with PHP- low system resources.

I'm looking to get a random row from MySQL without using too much time or resources on the system. I don't care about weather the code given is PHP or MySQL based, however please note there are 'gaps' in my table. My table columns are 'id' (Primary key, auto increment), varchar, int, int I'd like it to be as random as possible ...

Multiple rows share a value in a column, how do I put all of these rows into one single row?

Hi, I'm working with a text file that looks something like this: rs001 EEE /n rs008 EEE /n rs345 EEE /n rs542 CHG /n re432 CHG /n I want to be able to collapse all of the rows that share the same value in column 2 into one single row (for example, rs001 rs008 rs345 EEE). Is there an easy way to do this using unix text proces...

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...

jqgrid custom row colors

How can I set the background-color of an entire row (not just cell) using the custom formatter? ...

css: fix row height

hi all, i'm having this markup: <style> table { border:1px solid black; width:400px; height:300px; border-collapse:collapse; } table tbody { border:1px solid red; } table td { background:yellow; padding:10px; border-bottom:1px solid green; height:20px; } <...

SQL - Update table changing one column value based on another table

Hi. Sorry if the title is not as descriptive as it should be but it is kind of difficult to explain in one sentence what I am trying to do ;). I have one table that links parent objects with its respective childs. And I have another table with all the objects (parents and childs) with its respectives images. However, the image is just s...

Removing a row from an Excel sheet with Apache POI HSSF

I'm using the Apache POi HSSF library to import info into my application. The problem is that the files have some extra/empty rows that need to be removed first before parsing. There's not a HSSFSheet.removeRow( int rowNum ) method. Only removeRow( HSSFRow row ). The problem with this it that empty rows can't be removed. For example: ...

WPF: programatically assingin a color to row in DataGrid

Hi all, I need to assign a color to the a row that i add at runtime to the DataTable. How can this be done ? Regards Abdul khaliq ...

VBA Columns Automatically Merge?

I am writing a program in VBA that first compiles a Range from a series of cells and then later loops through the range to collect the data in the cells. The problem is that I need the range to maintain the order in which I add the cells so that I can then collect the data in the correct order when I go back through. If the data are in...

find row of matrix with most numbers < 10 method.

Hi, I cant imagine how to create this method: I can find numbers<10 with if loop and store them with count++; But thats all. Id like to see the algorithm in any lang(I can do some C++,java), so I can use it. Go through each row and record a count of numbers less than 10. Store that aside, go to next row, do same thing, compare, throw o...

SQL - Select first 10 rows only?

Hi, How do I select only the first 10 results of a query? I would like to display the first 10 results only from the following query: SELECT a.names, COUNT(b.post_title) AS num FROM wp_celebnames a JOIN wp_posts b ON INSTR(b.post_title, a.names) > 0 WHERE b.post_date > DATE_SUB(CURDATE(), INTERVAL 1 DAY) GROUP BY...

Best Way to Ajax-Control Table Rows

I want to be able to print out a table with x rows and about 10 columns. However, I want to be able to select rows in the table as if it was a multiple select box. Selecting the row of the table will cause an additional text area to display additional information about that row of data. What's the best way of doing this in AJAX? Thank...

Delete All Rows in a Table View with Objective-C

Hi everyone! I'm looking for a way to delete all rows of an NSTableView. The table view has a data source but it isn't set as a variable so if I need a data source, I have to have something like "data source of tableView" to access it. Thanks in advance. ...