It possible to insert lines between 2 other lines in Grid

Hi
Is it possible to insert lines between 2 other lines in the Grid. Example, I need to enter a new item between line 1 and 2 in the grid. Similar to inserting lines on the sales documents.
Can any having any idea please share with me.
Regards
Senthil

Hi,
have a look at the DataColumns Collection
A collection of DataColumn objects. Use this collection to add columns to the collection or remove columns from the collection.
You can access the collection via the DataTable.Columns property.
you'll find it in the UI API Dokumentation.
i hope it helps you.
regards
David

Similar Messages

  • Export Excel Data only causes blank line between 2 lines of records

    Hi,
    I wrote a complete winform application using CR2008.
    For information :
    C# Framework 3.5
    Windows XP SP2 or Windows Server 2003 SP1
    CR2008 SP1
    Application allow to preview report. In the preview window (CR activx) there is a "letter icon" to export report in several format.
    -RPT
    -PDF
    -DOC
    -XSL
    -XSL Data only
    When I export with "Excel Data only" format, I always have a blank line between 2 lines of records in Excel.
    Is there a way to supress them from VS2008 ?
    Thanks a lot for your reply,

    Hello, Jonik;
    Do you see the same blank lines when you export to Excel Data only in the Crystal Reports designer?
    Elaine

  • Is it possible to insert spacing between two TextFields (for visibility)?

    In my program, I have multiple TextFields on top of each other, and I want some separation between them just so it looks better. Is there any way to insert a line, or just add more spacing between rows? I am using a Flow Layout (is there something better than this for what I need?).
    Thanks.

    import javax.swing.*;
    import java.awt.*;
    public class DMtest extends JApplet
         private TextField Field1;
         private TextField Field2;
         public void init()
              Field1 = new TextField ("asdf");
              Field2 = new TextField ("asdf2");
              Container mainWindow = getContentPane();
              mainWindow.setLayout(new FlowLayout());
              mainWindow.add(Field1);
              mainWindow.add(Field2);
    }I want a space between Field1 and Field2, each on a separate row.

  • Need a Blank line between Text field data

    hello friends, Happy New Year..
    i have a varchar2(200) size field and i am Entreing data into it like this;
    Chairman  Name1
    Member    Name2
    Member    Name3
    Member    Name4
    Member    Name5
    Member    Name6
    Secretary Name7what to do is, insert an a blank line between all lines of this text field. The output to like this ;
    Chairman  Name1
    Member    Name2
    Member    Name3
    Member    Name4
    Member    Name5
    Member    Name6
    Secretary Name7The names are separated by pressing Enterkey (i dont know its equivalent chr(10) or chr(13).
    TYVM.

    You can also try the below :
    Assumption here is that you will always have data in that column in 7 lines.
    rec.rowno in (2,4,6,8,10,12,14) is included to create empty row in between each row.
    create table test(a varchar2(200));
    insert into test values('Chairman  Name1
    Member    Name2
    Member    Name3
    Member    Name4
    Member    Name5
    Member    Name6
    Secretary Name7');
    commit;
    select
           case
             when rec.rowno = 1 then
                   substr(a,1,instr(a,chr(10),1,1) - 1)
             when rec.rowno in (2,4,6,8,10,12,14) then
                  null
             when rec.rowno = 3 then
                   substr(a,(instr(a,chr(10),1,1)+1),instr(a,chr(10),1,2))  
             when rec.rowno = 5 then
                   substr(a,(instr(a,chr(10),1,2)+1),instr(a,chr(10),1,3))                          
             when rec.rowno = 7 then
                   substr(a,(instr(a,chr(10),1,3)+1),instr(a,chr(10),1,4))              
             when rec.rowno = 9 then
                   substr(a,(instr(a,chr(10),1,4)+1),instr(a,chr(10),1,5))
             when rec.rowno = 11 then
                   substr(a,(instr(a,chr(10),1,5)+1),instr(a,chr(10),1,6))
             when rec.rowno = 13 then
                   substr(a,(instr(a,chr(10),1,6)+1))                                            
           end name1,
           null signature,
           null "DATE"
      from test, (select rownum rowno from dual connect by level <= 14) rec;Edited by: neel_s on Dec 31, 2009 1:07 PM

  • Inserting variables into other variables

    I have several objects that have similar names, like slot1, slot2, slot3, etc. I also have a function that is supposed to do something to the first object, then the next, then the next, etc each time a button is pressed. Is it possible to insert variables into other variables? So say I have a variable called n that is increased each time the button is pressed. The function is then applied to slot"n" each time the button is pressed. How would I do this?

    use:
    var n:Number=1;
    function f(){
    // do something to parentmovieclip["slot"+n]
    n++
    p.s.  please mark this thread as answered, if you still can.

  • Is it possible to remove the delimiting line between Bookmarks bar and Tab bar?

    I place the Tab bar between the Bookmarks bar and the page content area, as the attached image shows.
    Is it possible to remove the delimiting line between Bookmarks bar and Tab bar? I feel that line is redundant.

    Your Tab bar doesn't look standard.
    Did you check the code with the default theme if you currently use a custom theme?
    ''(note that you can still use the code with a smaller font size if you like the monospace font; I do prefer this to make it easier to click the mouse)''

  • How can I insert a vertical line  between two underlined unfilled with text lines.  I am trying to construct an invoice and I need a break.  If I try any of the shapes or inset functions it eliminates my underlined lines and shifts the whole document.

    I am trying to construct an invoice.  How can I install a vertical line between two or more underlined lines to create a break.  I have tried the insert, shapes and nothing works.  If I try any of the functions the whole document shifts to the right and I loose some of the lines.  Is there a work around, or is I work not able to do what I want?   
    Thanks
    Armand

    It sounds as though you may have "Object Causes Wrap" activated for the Line Shape. This will push other content away.
    See the Wrap Inspector.
    Jerry

  • Lines between every other record in show report

    I've noticed that when I display the results of an Application-Report in Portal with Internet Explorer there is always a faint gray line between the second and third record, the forth and fith record, etc... When viewed with Netscape 6.1 this same report looks as I designed it, with a plain white background behind all of the records. Is there a workaround for this?

    Here are a couple of formulas that should help you out.
    This will calc the time diff between sequential start and end times
    WhilePrintingRecords;
    Global DateTimeVar x := IF {TableName.Type} = "start" THEN {TableName.TimeStamp} ELSE x;
    Local DateTimeVar y := {TableName.TimeStamp};
    Local NumberVar z:= IF {TableName.Type} = "start" THEN 0 ELSE DateDiff("n", x, y);
    And this one will provide a manual running total
    WhilePrintingRecords;
    Global DateTimeVar x := IF {TableName.Type} = "start" THEN {TableName.TimeStamp} ELSE x;
    Local DateTimeVar y := {TableName.TimeStamp};
    Global NumberVar z:= z + IF {TableName.Type} = "start" THEN 0 ELSE DateDiff("n", x, y);
    Note that you'll want to sort  the records by the "TimeStamp"
    HTH,
    Jason

  • Is it possible to center text between any set of verticle lines shown by the grid?

    I'm trying to get text to be set at the specific spots on this background I'm using, so I turned the grid on. I have to put text at specific locations a lot. So it would be a whole lot easier and faster if I could just automatically center the text between the lines of the grid, rather than manually fiddling with it.

    well smart guides in this case might get you where you want to go.
    But if you have either point type or  text frame it is pretty easy to do.
    Turn on snap to grid in the view menu
    draw a rectangle from one of the grid lines to to the other (with no fill and no stroke optionsl)
    then place the text over the rectangle, turn off snap to grid.
    in the align panel select to align by key object select both the text and the rectangle and click (with a selection) on the rectangle to make it the key object (do not hold the shift key down).
    Then in the align panel choose the center icon for either horizontal or vertical alignment.
    Vertically aligning the text means that a text frame has to snug the text and even at that it is often subjective so you might have to nudge for a visual
    accepted centering and sometimes this is true of horizontal aligned center depending on the size and use of the text.
    Oh yes after you center the text you can delete the rectangle.

  • Can I switch my phone number between two lines(not just between phones)?

    I have 4 months left on my current plan. I would like to take advantage of current holiday sales to get the droid razr for cheap. I am considering adding an additional line to my plan to get the upgrade. The problem with this is that I either have to use the new number and let my other contract end or continue on with my current number and pay for 2 lines for the next 2 years. I noticed that verizon lets you switch the phone number that is associated with your line. Would I be able to add an additional line to my plan and then switch the numbers between these two lines? Essential line A has number A and ends in 4 months, line B has number B and ends in 20 months, and I want to make it so that line B has number A and then only pay for line A for the next 4 months. Is this possible?

    Verizon does not allow you to switch numbers since they are tied to your contact. However, there's a work around, because Verizon does allow you to port a number from another carrier to overwrite the existing number without changing your contract. So here's what you need to do:
    1. Get the Razr cheap like you wanted on a secondary line;
    2. Wait for 4 months so your main line contract is up;
    3. Port out your main line number to another carrier, for example, Pageplus;
    4. Wait till your bill cycle is passed and port that number from Pageplus to Verizon, overwrite the number on secondary line.
    After step 4 you will have your main number back on the line with the Razr.

  • Polar equation of a line between two points

    I am trying to make a method to output the points (in polar coordinates (r, theta)) along a line between two given polar coordinates.
    This will mimick the path of an object traveling across a radar screen.
    Is this possible?

    Java does not plot in polar coordiantes, you'll have to convert to rectangular to get a plot. If you're just doing a sweep on a screen, then it's fairly simple to do:
    r is the radius of your screen,
    (0,0) is your Origin translated as (Xmax/2, Ymax/2)
    when you draw the line you just start at your Origin and get your end values as
    X1=X0+r*cos(Theta) and
    Y1=Y0+r*sin(Theta),
    I've not seen, nor do I think there is any other support to do what you want--you have to convert to (x,y) coordinate system.
    This will leave a ragged edge so make a border around your screen.
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.image.BufferedImage;
    import java.awt.Point;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.Timer;
    public class JRadar{
      public JRadar(){
        JPanel p = new MyJPanel();
        JFrame f = new JFrame("ForumJunk: JRadar");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.add(p);
        f.pack();
        f.setVisible(true);
      public static void main(String[] args){
        new JRadar();
      class MyJPanel extends JPanel implements ActionListener{
        Timer t = new Timer(10, this);
        Dimension d = new Dimension(512, 512);
        BufferedImage bi = new BufferedImage(d.width, d.height, BufferedImage.TYPE_INT_RGB);
        Graphics2D g = bi.createGraphics();
        double theta = 0;
        int r = d.width/2 - 16;
        Point origin = new Point(d.width/2, d.height/2);
        public MyJPanel(){
          g.setColor(Color.RED);
          this.setPreferredSize(d);
          t.start();
        public void actionPerformed(ActionEvent e){
          g.clearRect(0, 0, d.width, d.height);
          g.drawOval(16, 16, 480, 480);
          g.drawLine(origin.x, origin.y, (int)(origin.x+r*Math.cos(theta)), (int)(origin.y+r*Math.sin(theta)));
          theta += 0.01;
          if(theta>=Math.PI*2) theta = 0.0;
          repaint();
        public void paintComponent(Graphics g){
          super.paintComponent(g);
          g.drawImage(bi, 0, 0, this);
    }Edited by: morgalr on Mar 3, 2010 4:59 PM: code example added

  • Setting the ALV Hierarchy tree with grid line between the columns and rows

    Hi Experts,
    I would like to ask if there is any suggestion on setting the ALV hierarchy tree to be separated by grid line between the columns and rows just like how it is display the same way in normal ALV grid.
    Thanks in advance.

    Hi Lin,
    The requirement which you have stated is not possible.
    Lin,
    Also i have a query regarding BADI ZME_PROCESS_REQ_CUST, which you had raised on SDN. You have marked the question as solved/answered.
    Changing the data of a customize field in purchase requisition
    Could you please let me know, the steps you did to update the screen fields through the BADI.
    I would really appreciate your reply, because i am facing exactly the same problem which you have mentioned.
    Thanks,
    Best regards,
    Prashant

  • Dashed line between pages

    Is it possible to avoid the dashed line between pages when "Show Gaps Between Pages" is unchecked? In other words is it possible to have the 2 pages join seamlessly, no gaps, no dashed lines?
    Thanx,
    Guido

    "I would like to export the document to PDF using the spreads option, so that the spreads are combined into 1 page.
    However, is there a way for the PDF to recognise the page numbers originally specified in InDesign?"
    When you combine pages in a spread you make one page in Acrobat. I can't see how you would expect Acrobat to see this as
    two pages.
    k

  • Is there a way to trace a line between point A and B in a PowerMap

    Hi there,
    I have a simple question about PowerMap. Can I trace a line between points A and B? Please bear in mind that a workaround to create hundreds/thousands of points to simulate a line would NOT work for me (like this tutorial
    here -- this is a no-no for me).
    Any ideas if this is possible? If not, then consider it a feature request :-)
    Regards,
    P.

    Sorry but I think you are missing the point here.
    You added several yellow points to make this line. This isn't a line but a bunch of dots. I mentioned in my original question that unfortunately this is an unacceptable kludge for me.
    Consider this. you only have 3 to 5 of those dots, from Athens to Melbourne -- and I want a line between each one of those 3 to 5 dots, connecting them. NOT several dots that looks like a line -- that is cheating (and contra-productive in a real-life scenario)
    Regards,
    P.
    It's not possible. You can make feature requests using the Smile/Frown Feedback button in the UI.
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Draw line between black pixel : coordinates of selected pixels ?

    Hi
    I want to build a script which can check a Photoshop file and :
    - find black pixel
    - for each black pixel, look for another black pixel within maximum distance of 5 pixels
    - then draw a line between the two black pixels.
    I wrote this script below (my first script ...), but it's VERY slow (and my final image is VERY big), I think because I test the colour for each pixel of the image.
    So another solution would be to first select black pixel with magic wand, then the script save all coordinates of selected pixels, then my script wil test only this pixels (less than 1% of the pixels are black in my image).
    Is it possible with JavaScript ?
    Thank you for your response !
    Marc
    function main(){
    var startRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var myHeight = app.activeDocument.height;
    var myWidth = app.activeDocument.width;
    // Find black pixel
    for(var i=5; i<myWidth; i++) {
      for(var j=5; j<myHeight; j++) {
       activeDocument.colorSamplers.removeAll()
       var sampler = activeDocument.colorSamplers.add([new UnitValue (i, 'px'), new UnitValue (j, 'px')]);
       if (sampler.color.rgb.hexValue === "000000") {
    // For each black pixel, search another black pixel below left up to 5 pixels
        for (var m=i-5; m<i; m++) {
         for (var n=j+1; n<j+5; n++) {
          activeDocument.colorSamplers.removeAll()
          var test = activeDocument.colorSamplers.add([new UnitValue (m, 'px'), new UnitValue (n, 'px')]);
          if (test.color.rgb.hexValue === "000000") {
    // Then draw a black line between the two black pixels
           var FillColour = new SolidColor;
           FillColour.rgb.hexValue = '000000';
           var ad=activeDocument;
           ad.selection.select([[m,n],[i,j],[m,n+1],[i,j+1]], SelectionType.REPLACE, 0, true);
           ad.selection.fill(FillColour);
           ad.selection.deselect()
    // For each black pixel, search another black pixel below right up to 5 pixels
         for (var m=i+1; m<i+5; m++) {
          for (var n=j; n<j+5; n++) {
           activeDocument.colorSamplers.removeAll()
           var test = activeDocument.colorSamplers.add([new UnitValue (m, 'px'), new UnitValue (n, 'px')]);
           if (test.color.rgb.hexValue === "000000") {
    // Then draw a black line between the two black pixels
            var FillColour = new SolidColor;
            FillColour.rgb.hexValue = '000000';
            var ad=activeDocument;
            ad.selection.select([[i,j],[m,n],[m,n+1],[i,j+1]], SelectionType.REPLACE, 0, true);
            ad.selection.fill(FillColour);
            ad.selection.deselect()
    main();

    The first alert should have shown the first pathPoint.anchors for all the subPaths in the path.
    The xyArray is just something I added for the alerts. The array 'myPathInfo' should have all the info extracted from the path.
    myPathInfo.length will tell you how many subPaths are in the Path.
    myPathInfo[index].entireSubPath.length will tell you how many pathPoints are in that subPath
    myPathInfo[index].entireSubPath[index].anchor will tell you the position of that pathPoint.
    The indexes start with zero.
    The bounding box of the entire subPath can be hard to work out just from the pathPoints. Unless all the point are corner points the path may extend beyond the anchors. One think you can do is create a new path from just one of the subPaths, convert by to a selection, and then get the bounds from the selection. You can make a new path from a subPath using the 'myPathInfo' array from above.
    app.activeDocument.pathItems.add("myPath1", [myPathInfo[0]]);
    That line will make a new path from the first subPath. Change the index to use a different subPath.
    Some other info that may help.
    app.activeDocument.histogram[0] will tell you how may black pixels are in the document. But its no help determining where they are. If that returns 0 there are no black pixels.
    If you don't have any luck working with converting the original color range selection into a path and need to go back to searching with the colorSampler it may help to use a grid approach. For example make a square selection, the size depending on how scattered the black pixels are, say 25x25px. Then use color range to select black. With an active selection it will only select pixels in that selected area( if any). You could then check to see if there is a selection. If not make another same size square to the right edge of the last area. If there is a selection, the solid property will tell you if more than one black pixel was selected( unless they are right next to each other ). If solid == true the selection bounds will tell you where the pixel is. If false you have to then search that square. But if there are areas where there are no black pixels checking a square range of pixels at once should be quite a bit faster than checking every pixel. And checking the historgram first will let you know if you should bother searching to start with.

Maybe you are looking for

  • Using Weblogic LDAP JAAS credentials for 3rd party authentication

    Hello to all! I'm posting this question because I'm developing a software layer that will connect a weblogic based web application, with LDAP authentication, to a 3rd party application, also with LDAP authentication, and I'm having difficulties in ge

  • MOV to WMV conversion problem

    I have quicktime pro and am trying to covert quicktime mov files to wmv files. The conversion happens, but when I play the wmv file I find that only part of the mov file was converted. Any ideas on how I can fix this?

  • Sending SMS`s

    I would like to write a Desktop application/applet that is able to send SMS`s to multiple cellular numbers at one go. My question is, can it be done using the standard JDK1.2 classes or do I have to use some other package to do this and if so, which

  • How to instal FMS and Wowza Server on same machine.

    I want to to instal FMS and Wowza Server on same machine any one know about this please guide me about this. Thanx in advance.

  • Illustrator runtime/processing logs locations?

    Hello, I'm going to check with my company's developers to look at the issue, they might know the answer or some of it, but in any case thought I'd ask here as well. We have a custom AI script that processes art files (removes some stuff from file). T