Higlighting a individual cell or placing border for individaul cell

hi all,
Please let me know is there any way to highlight individal cell in alv grid display
or placing red border around cell in alv grid display.

Yes , its possible try using CELLSTYLES.

Similar Messages

  • Border for Excel Cells generated using HTML

    Hi,
    I am generating html at server side and writing the content with
    content type application/xls, all the generated data downloads to
    me in excel sheet. Here in this excel document, I dont have borders
    for the cell where i dont have the data. But for the cells, where data
    is placed, cell borders are available. How do i make the whole excel sheet
    cells as bordered.
    Thanks in advance.
    Regards,
    Rizwan.

    If I have table border="1" they show up. I want
    borders even in other parts of the excel sheet where
    table is not there. Is it possible for that to get
    the borders in entire excel sheet where data is
    present and even if data is not present?IIRC, it would not be possible unless you paint all those borders on the HTML page. An alternate way is to generate the Excel sheet using Jakarta POI, but that would only make your work tougher.

  • In dreamweaver CS4, I can't make border for single cell

    Hi folks,
    Having given up trying to make a single cell border in the dreamweaver CS4 template, I reverted to an html page and put in my own header, 2 columns and footer as cells in the html table. I know there's html code for adding borders to single cell, but I can't find it. I hope someone can give me a sample line of html code for giving a cell a border on left side and on right side, including 1px solid color border. Anyone?

    Not sure if this is what you want, at least it will give you an example
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    body {width: 980px; margin: auto; background: #FEE49A;}
    #header {height: 120px; background: #060;}
    #article {height: 400px; width: 749px; float: right; background: #FFF; border-right: 1px solid #060;}
    #aside {height: 400px; width: 228px;    float: left; border-right: 1px solid #060; border-left: 1px solid #060; background: #CCC;}
    #footer {height: 50px; background: #060; clear: both;}
    </style>
    </head>
    <body>
    <div id="header"></div>
    <div id="aside"></div>
    <div id="article"></div>
    <div id="footer"></div>
    </body>
    </html>
    Gramps

  • Fine solid black border for table-cell

    Hi!
    I'm facing the following problem. I'd like to have a tableview where cells have a fine! black (not grey) border. The result should look like a typical Excel-Spreadsheet.
    When entering this in the css Stylesheet:
    .table-view {
        -fx-background-color: white;
        -fx-border-color: black;
        -fx-border-width: 0.8px;
    .table-cell {
        -fx-background-color: white;
        -fx-text-fill: black;
        -fx-border-color: black;
        -fx-border-width: 0.1px;
        -fx-border-style: solid;
    The border of the tablecells get grey are still are to width. How could I get my excel-like grid? When increading changing the width (i.e. to 0.5) the line gets "more black") but unfortunately also too wide.
    Thanks in advance,
    Michael

    Hi!
    I'm facing the following problem. I'd like to have a tableview where cells have a fine! black (not grey) border. The result should look like a typical Excel-Spreadsheet.
    When entering this in the css Stylesheet:
    .table-view {
        -fx-background-color: white;
        -fx-border-color: black;
        -fx-border-width: 0.8px;
    .table-cell {
        -fx-background-color: white;
        -fx-text-fill: black;
        -fx-border-color: black;
        -fx-border-width: 0.1px;
        -fx-border-style: solid;
    The border of the tablecells get grey are still are to width. How could I get my excel-like grid? When increading changing the width (i.e. to 0.5) the line gets "more black") but unfortunately also too wide.
    Thanks in advance,
    Michael

  • How do you format cell size in numbers for multiple cells at the same time?

    How do you format the cell size of multiple cells at once in numbers?

    select the cells you want to format by clicking at the top-left most cell, then shift click the bottom-right most cell.
    Then open the inspector by selecting the menu item "View > Show Inspector", then click the table inspector segment:
    now use the row height and column width fields to adjust as needed.
    You can also select multiple rows and columns by clicking in an active tables row/column header, then dragging to select rows (or column), then hover the cursor on the line the separates rows (or columns) until the cursor changes to a bar with arrows, then click, hold, and drag as needed.

  • Thin borderlines for JText cells

    Hi,
    The following example makes a table based on JTextFields.
    I would like to get thinner border lines as they are in a JTable.
    Who knows how?
    Thanks
    Michel
    package MTabProtoypes;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.HeadlessException;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    /* @author scm */
    public class TabJtextfieldsArray02 extends JFrame implements MouseListener {
         private JTextField[][] txt;     // View: 2D Array of textfields o=o 2D model array 
         private Container cp = getContentPane();
         public static void main(String[] args) {
              int totRows = 256; int totCols=64; int visRows = 16; int visCols=8; int x=10; int y=10; int h=20; int w=70; 
              TabJtextfieldsArray02 mTabTest = new TabJtextfieldsArray02(totRows,totCols,visRows,visCols,x,y,w,h);          // Neue Table
             mTabTest.setSize(600, 400);    
             mTabTest.setVisible( true );
         public TabJtextfieldsArray02(int totRows, int totCols, int visRows, int visCols, int xpos, int ypos, int width, int height) throws HeadlessException {
    //          super ("Tabellen - TabJtextfieldsArray02");
             cp.setLayout( null );
             txt = new JTextField[totRows][totCols]; // Table / Textfield-Array Params (rows/columns)
             for (int i = 0; i < visRows; i++) {appRow (i, visCols, xpos, ypos, width, height);}     // append row by row
                for (int i = 1; i <=visCols; i++) {insText (1,i,"ColHead "+i);}               // Index  Not 0/0, but 1/1, including header
                for (int i = 1; i <=visCols; i++) {setLineAttrib (1,i,1);}                    // Header (light gray)
                cp.addMouseListener((MouseListener) this);
         private void appRow (int row, int visCols, int x, int y, int w, int h) {     // build column row by row
              for (int j = 0; j < visCols; j++) {
                   txt[row][j] = new JTextField();     
                   txt[row][j].addMouseListener(this);
    //               txt[row][j].setBorder(BorderFactory.createEmptyBorder());               // no border
    //               if ((j+1)%2==0) {                                                                 // trial with only odd rows - forget it
    //                    txt[row][j].setBorder(BorderFactory.createRaisedBevelBorder()); // border
    //               } else {
    //                    txt[row][j].setBorder(BorderFactory.createEmptyBorder());          // no border
                   txt[row][j].setBorder(BorderFactory.createRaisedBevelBorder());
    //               txt[row][j].setBackground(Color.lightGray );
    //               txt[row][j].setForeground(Color.gray);
    //               txt[row][j].setBorder(BorderFactory.createLoweredBevelBorder());
    //               txt[row][j].setBorder(BorderFactory.createLineBorder(Color.black));          // Thickness = 1
    //               txt[row][j].setBorder(BorderFactory.createLineBorder(Color.black,1));       // Color, Thickness
    //               System.out.println(txt[row][j].getBorder());
    //               txt[row][j].setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.black));
    //               txt[row][j].setBorder(BorderFactory.createEtchedBorder());
    //               txt[row][j].setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED )); //
                   txt[row][j].setBounds(x+j*w,y+y*2*row,w,h);          
    //               txt[row][j].setBounds(x+j*(w-1),y+y*2*row,w,h);     
                   cp.add(txt[row][j]);
    //     Text in ein Tabellenfeld einf�gen
         private void insText (int row, int col, String tabField) {
              txt[row-1][col-1].setText(tabField);
    //     Eine Tabellenelement bekommt ein bestimmtes Aussehen
         public void setLineAttrib (int row, int col, int attrib) {
              switch (attrib) {
              case 1:          // Hintergrund grau
                   txt[row-1][col-1].setBackground(Color.lightGray);     
                   break;
              default:
                   break;
         public void mouseClicked(MouseEvent arg0) {
              System.out.println("mouseClicked: "+arg0);
         public void mouseEntered(MouseEvent arg0) {
              System.out.println("mouseEntered: "+arg0);
         public void mouseExited(MouseEvent arg0) {
              System.out.println("mouseExited: "+arg0);
         public void mousePressed(MouseEvent arg0) {
              System.out.println("mousePressed: "+arg0);
         public void mouseReleased(MouseEvent arg0) {
              System.out.println("mouseReleased: "+arg0);
    }

    but I don't know why.you had a border for each 'cell', meaning between adjacent 'cells' there were 2 borders,
    right side of one adjoining left side of adjacent
    likewise for bottom/top
    the matte border allows you to specify 0 pixels wide for top/left/bottom/right,
    meaning the overall 2 borders are 1 pixel wide
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/BorderFactory.html#createMatteBorder(int,%20int,%20int,%20int,%20java.awt.Color)

  • Can I change the border style for normal cell?

    Im using Numbers on ipad2. As I say, Im wondering if I can change border style such as its width and colour for ordinary cells which is not a incerted media.
    As I know, Numbers only allows the position of borders for normal cells,,, anyone help me?

    You only get that when you have two or more consecutive messages. Try to avoid that is one option.
    You can change the icon if you want. Create another icon, call it stop.ico and put it in the icons directory (as indicated by UI_ICON). However, if you have a STOP alert, the icon changes for that alert too.
    Note: this is for Developer 6i. In 9i you cannot use ico files. Use gif files instead and put the image in the image jar file (found in OH/forms90/java directory). Since you see a big X, I believe you are using 6i.

  • Specifying border for h:datatable

    I am trying to specify border for h:datatable using something like this.
    .selDataTable {
         width:100%;
         border:5px;
    }          The problem is that the border appears only on the outside of the table and not for each cells. On the other hand if I directly specify border="5" on the datatable tag, I get borders all arround the table and cells. This is what I want. Why doesn't the class specified by styleClass="selDataTable" provide borders arround each cell.
    regards,
    nirvan.

    So that you can set the border of the table, head, body, foot, rows and cells individually.

  • Report Generation broken after deployment - Excel Set Cell Color and Border.vi

    Upon deployment, the Excel Set Cell Color and Border.vi became broken.  After installing LV2010 SP1 to view the VIs in the deployment, I noticed that in the second case structure where the code draws the border using the BorderAround invoke node, there is an extra variant input parameter named 'Parameters'.  Upon right-clicking, an option to 'Relink Invoke Node' appeared and after selecting this, the extra input disappeared and the VI was no longer broken.
    Why does "Relink Invoke Node" appear?  How do I create a deployment with this issue?  Has anybody else experienced this?  Why is the TestStand deployment so buggy?  

    Hi Ching-Hwa,
    I have set up a test deployment here where I am deploying a workspace that contains a sequence file.  This sequence file has a LabVIEW Action Step calling a VI that opens a new Excel file and simply calls the Excel Set Cell Color and Border VI.  After deploying this, both the VI and my test sequence ran on the deployment machine without error.  Therefore, I do have some more questions to more accurately reproduce what you are seeing.
    First, what operating systems are you developing on and deploying to?  Also, what license do you have for TestStand on the machine you are deploying to?  If you have a development version, can you manually take the sequence file and VI to this machine and run it?  I know you now have LabVIEW 2010 SP1 on your development machine, but if you have the development version of TestStand as well, it would be interesting to see if you copy the files over if you still see this behavior.  Are you including the TestStand Engine in the deployment?
    Can you open a blank VI on the deployment machine and add the Excel Set Cell Color and Border VI?  It would also be interesting to see if this is not a product of the deployment, but rather an issue with something on the deployment machine itself.  What version of the Report Generation Toolkit do you have on each machine?  Also, what versions of Excel are you using on the development and deployment machine?  Again, it would be helpful for me to know exactly what versions you have installed on both the development and deployment machines so that I can reproduce this as accurately as possible.
    One last thing to try, too, would be to try deploying the VI by itself just to see if it also has the same behavior.  Do you have the Application Builder in LabVIEW?  If so, could you also try building an executable from the VI, create an installer, and deploy this to the deployment machine?  
    In regards to the "freezing" of code by removing the block diagrams, I do not believe this will be a proper work around in this case.  While this removes the block diagram from actually being deployed along with the VI and restricts users from editing the code on the deployment machine, if something is getting changed in the compiled code upon deployment, this will not stop this from happening.  This option is available more as a memory option to lower the size of the deployment as well as prohibit any users on the development machine from editing the block diagram themselves.    
    Thanks, Ching-Hwa!  I look forward to your response so that I can continue trying to reproduce this issue.  Have a great day! 
    Taylor G.
    Product Support Engineer
    National Instruments
    www.ni.com/support

  • Update excel cells once placed in indesign

    Hi,
    Once an excel file has been placed onto an indesign document with  custom cells, how do I change these cells without placing the excel file all over again?
    Many thanks

    Bob,
    Thanks for the reply. Please bear with me since these issues with InDesign/pdfs are new to me.
    With reference to your notes above..
    1.Since there will be c. 300 pages and probably 200 maps/outlines included, I'd prefer not to open each page file and convert the files and resave (or open the pdf in illustrator and resave).
    2. I export the pdf to "Press Quality" what should "compatibility" be
    set to?
    Also, Under "Output", "color" what should my settings be for:
    Color Conversion: No COlor conversion, COnvert to Destination or COnvert to Destination (preserve color numbers).
    If I was printing four-color process I would choose my "Working CMYK" or use a profile supplied by my printer.
    Since my goal is to be one color black - what do I set "Color Conversion" to??
    Destination - ???
    Profile Inclusion Policy - ??
    Once Exported, I reopen the file with Acrobat reader and how do I convert the colors?? Under Tools>Print Production there is an option to convert colors but am unsure of the steps to convert process colors to one-color blacks having never done this before.
    3. Instead of Export, I can print to postscript by selecting the printer as Adobe Pdf and under output/color select "Composite gray" to render a one-color file, correct? I think this may be my easiest option unless there are hidden issues with it :)
    If I have specific job option pdf settings from my printer, where do I check that these are enabled if I print to adobe pdf.
    Any steps will be helpful, especially ones that will export the whole book at once and still not give my printer a headache. I will also contact my provider and discuss it with them, but prefer to educate myself first.
    Thanks for taking the time and sharing your knowledge..
    JH

  • What component is placed default in each cell of JTable?

    Hi,
    What component is placed default in each cell of JTable?

    It depends on the content, see How to Use Tables - Concepts: Editors and Renderers for details.

  • Disabling the border on JTable cell renderer

    Hello all
    I've developed a JTable that doesn't allow cell editing and only allows single-row selection. It works fine, I've allowed the user to press <tab> to select the next row or click the mouse to select any row. The row selected is high-lighted and I'm happy with how it works.
    However:
    Due to the single-row selection policy, it doesn't make sense to display a border around any cell that has been clicked. I would therefore like to prevent the JTable from displaying a border on any cell the user has clicked.
    I've checked out the API documentation for JTable and the closest I've been able to get is to construct a DefaultTableCellRenderer and then use JTable.setDefaultRenderer. The problem is I don't know how to set the DefaultTableCellRenderer to NOT display a border when selected.
    I can see a method called getTableCellRendererComponent which takes parameters that seemingly return a rendering component, but should I specify isSelected = true and isFocus = true? And what should I do once I have the Component? I've tried casting it to a JLabel and setBorder(null) on it, but the behaviour of the table remains the same.
    I've tried all sorts of things but to no avail. I'm finding it all a bit confusing...
    Why oh why isn't there simply a setTableCellRendererComponent()? ;)

    JTable can potentially use multiple renderers based on the type of data in each column, so you would need to create multiple custom renderers using the above approach. The following should work without creating custom renderers:
    table = new JTable( ... )
         public Component prepareRenderer(TableCellRenderer renderer, int row, int column)
              Component c = super.prepareRenderer(renderer, row, column);
              ((JComponent)c).setBorder(null);
              return c;
    };

  • Dreamweaver Developer Toolbox - Show border on empty cell using Horizontal Looper Wizzard

    Hello,
    I just applied a horizontal looper, 3 columns, unlimited
    rows. Works nice. One question however. On the last row, my
    recordset does not have data for 3 columns, thus, the 2 cells on
    the right is empty, as it should be. But my table has a border, and
    because there is no data in the cells, including a " ",
    there is no border on that cell. Cosmetically is looks like a
    problem, even though all else is correct.
    How can I get a border on that last 2 empty cell, bottom
    right? I tried adding a "&nbsp" before almost all the
    "</td>", but still could not get the border on that empty
    cell.
    I'm using ASP VB Script
    Regards
    Rune

    Reinstall ADDT was the key I was able to finish the tutorial
    still having problems but all can wait

  • JTable changing borders for table cells

    Hi,
    I have a JTable which has columns which each represent a month for a
    specified time period. For example, my table displays rows containing numeric data for March 1998 - April 2002.
    I would like to create a Raised Cell for the numeric data for the first
    cell in the time series and a raised cell everytime the numeric data
    is under the column for January of the new year. For example,
    the cell containing the data under March 1998 column should be raised and the cells containing the data for January 1999,2000,2001,2002 should be raised.
    (FYI: I am using a TableModel which extends the AbstractTableModel)
    Many Thanks in advance,
    Alex

    You need to create a custom table cell renderer to do what you are asking. It is what actually draws the cells. Just subclass the DefaultTableCellRenderer and override the getTableCellRendererComponent() method. Look at the source for that class, and just change it to add your logic to use a different border depending on the cell to be drawn.

  • Border for Grid Layout

    Hi Developers,
    Does anyone know how to put border around each cell so that a gridlayout can look like a table?  I used CSS to add border on the sides but what i exactly want to do is create a border around each cell so that when I run the report, I see a table instead of one big red box.
    Thank you for all your help and suggestion!!
    Raj

    yes, like Mike already said.
    Additionally I would put these into a class
    myClass.sapUiMlt.zenControl {  border: 2px red solid;  } 
    and assign this class to each grid component you want to have the inside borders. otherwise automatically
    all your grid cells will show borders.
    Jeroen

Maybe you are looking for

  • Powerbook G4 won't go past grey screen

    I have a 12" 867 mHz Powerbook G4. The drive started making awful grinding noises so I assumed it was a bad drive (it's the original drive, rather old) so I purchased a new Samsung 160 GB drive on eBay. Disassembling was tricky, but I got the new dri

  • XML storage and retrieval in/out of 8i

    Please take into consideration my lack of exerience in XML and Oracle8i when you read this question.... Our project is considering using Oracle8i to store, query & retrieve XML documents. Having read several Oracle web sites on XML, I'm left with the

  • Transaction problem with jconn5.2

    jconn5.2 and iASsp2 I am using Bean Managed Transaction in my application, start the first transaction is fine, but once the application going to start another transaction, errors occoured: "the transaction onwer is not in current thread".

  • PDFing a Captivate Project

    When i publish my project created in Captivate 5, I can't hear the audio.  BUT I can hear the audio on the html version of the project.  (When I publish, it creates both a PDF and a html version of the project.  I'm new to Captivate so it's probably

  • Time Machine Simultaneous Connection Limitations

    I am using a Time Capsule as both a Time Machine backup and a file server over the network. I seem to be hitting a 10-client limit on my simultaneous filer server connections. Is this related to the 10-Client limit on Personal File Sharing in Mac OS