Results 1 to 6 of 6

Thread: [RESOLVED] Day displayed Reverse in Grid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    91

    Resolved [RESOLVED] Day displayed Reverse in Grid

    Hai

    i want to develop a grid with contents and vertically it should display in reverse order as follows

    please suggest me the approach i should go. i am working on C# 2005 windows forms

    Please see teh attachment for better understanding of my requirment


    Thanks and Regards
    VInay Kumar
    Attached Files Attached Files

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Day displayed Reverse in Grid

    I for one am not interested in downloading a Word doc. Whatever we need to know you should post.

    If you want to display data in a DataGridView in a particular order then you should set the Sort property of the BindingSource it's bound to such that the data is in that order, e.g. "ID ASC" or "ID DESC" to sort in ascending or descending order by ID.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    91

    Re: Day displayed Reverse in Grid

    Thanks for the reply

    Its not to display in sort order. its to display the content in Vertical order.

    Thanks and Regards
    Vinay Kumar

  4. #4
    Frenzied Member
    Join Date
    Aug 2005
    Posts
    1,042

    Re: Day displayed Reverse in Grid

    kumar:

    I'm not sure we are understanding you.

    You stated: "i want to develop a grid with contents and vertically it should display in reverse order as follows" but the you didn't give any example.

    I looked at your Word Doc and all it is, is a copy of a section from MSDN about:Introduction to the Windows Forms DataGrid Control.

    I am thinking what you mean may be that instead of having the headings of the DataGrid run across the top of the DataGrid like:

    CustID CustName Current you want the heading on the side like:

    CustID
    CustName
    Current and then it would repeat:
    CustId
    CustName
    Current or, since you say "reverse" maybe you mean
    to "reverse" the order across the top, like:

    Current CustName CustID

    If you can explain what you want to do a little more, maybe someone here can help you.

    Good Luck

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    91

    Re: Day displayed Reverse in Grid

    Hai thanks for the reply

    i added a doc with grid . in that one the day record i.e Monday ,Tuesday ...


    should be displayed in the order as shown in doc. As vertical text


    Waiting for the reply

    Thanks and Regards
    Vinay Kumar

  6. #6
    Frenzied Member
    Join Date
    Aug 2005
    Posts
    1,042

    Re: Day displayed Reverse in Grid

    kumar:

    OK, I took a look at your doc file and it appears that what you want is to have the headings of the grid run down the side of the grid instead of across the top.

    I don't think that there is any way you can make that happen using the datagrid control. Perhaps someone else can tell you, but I really don't think it is possible.

    You could write your own control, but that is quite involved.

    I think I would make my own grid using labels and textboxes and try that and see how it turns out.

    Sorry I didn't have an answer for you.

    Good Luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width