one Question from all dot net programmers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maignanamurthy
    New Member
    • Aug 2007
    • 12

    one Question from all dot net programmers

    if anybody will help me, its a great help,

    The datagridview column types allow only
    textbox,Combobo x,checkbox,butt on,linkbutton and image button.
    but
    i want adding DateTimeColumn into my datagridview,
    i am using vb.net 2005

    thanks in advance
    uuurrrgggeeennn ttt.
  • chazcross
    New Member
    • Feb 2007
    • 31

    #2
    *edit
    I should have asked first
    Win App or Web App?


    if your only viewing it in the grid, this is what you would use.

    Code:
    <asp:BoundField DataField="YourColumnHere" HeaderText="Listed Date" DataFormatString="{0:M-dd-yyyy}" HtmlEncode="False" />
    You can also insert other controls into the gridview

    <Columns>
    <asp:TemplateFi eld>
    <ItemTemplate >

    </ItemTemplate>
    </asp:TemplateFie ld>
    </Columns>

    Comment

    • talhaekram
      New Member
      • Apr 2007
      • 14

      #3
      Originally posted by maignanamurthy
      if anybody will help me, its a great help,

      The datagridview column types allow only
      textbox,Combobo x,checkbox,butt on,linkbutton and image button.
      but
      i want adding DateTimeColumn into my datagridview,
      i am using vb.net 2005

      thanks in advance
      uuurrrgggeeennn ttt.
      Since Data grid follows a restrict format you cant add this control to datagrid view.
      Try making custom control for this purpose.
      Last edited by talhaekram; Sep 8 '07, 05:59 AM. Reason: spelling error

      Comment

      • maignanamurthy
        New Member
        • Aug 2007
        • 12

        #4
        thanks for your reply,
        but actually i am using windows application,
        So i want any Custom control for add the datetimecolumn into my datagridview. because i am not familiar with creating custom control ,,
        if u give any custom control(user developed control), it will help a big,,
        thanks in advance

        Originally posted by chazcross
        *edit
        I should have asked first
        Win App or Web App?


        if your only viewing it in the grid, this is what you would use.

        Code:
        <asp:BoundField DataField="YourColumnHere" HeaderText="Listed Date" DataFormatString="{0:M-dd-yyyy}" HtmlEncode="False" />
        You can also insert other controls into the gridview

        <Columns>
        <asp:TemplateFi eld>
        <ItemTemplate >

        </ItemTemplate>
        </asp:TemplateFie ld>
        </Columns>

        Comment

        • maignanamurthy
          New Member
          • Aug 2007
          • 12

          #5
          thanks for your reply,
          but actually i am using windows application,
          So i want any Custom control for add the datetimecolumn into my datagridview. because i am not familiar with creating custom control ,,
          if u give any custom control(user developed control), it will help a big,,
          thanks in advance




          Originally posted by talhaekram
          Since Data grid follows a restrict format you cant add this control to datagrid view.
          Try making custom control for this purpose.

          Comment

          • parthi
            New Member
            • Sep 2007
            • 1

            #6
            TO READ THE DATA From XML TAG in asp.net

            i want To Read the data in particular TAG in XML and i bind the same to my datagrid, actually iam using asp.net with vb coding.
            i am not familiar with XML
            your answer is to make a big help

            thanks in advance
            Last edited by parthi; Sep 10 '07, 05:18 AM. Reason: to change a subject

            Comment

            • vishwanatha
              New Member
              • Sep 2007
              • 3

              #7
              Check the below link it will help you
              http://msdn2.microsoft .com/en-us/library/7tas5c80.aspx

              Comment

              • maignanamurthy
                New Member
                • Aug 2007
                • 12

                #8
                Originally posted by vishwanatha
                Check the below link it will help you
                http://msdn2.microsoft .com/en-us/library/7tas5c80.aspx

                Dear vishwanathan

                thanks for your help,
                the website you given is very useful one.
                it will help a big to me.
                more and more thankkkkkkkks for u

                Comment

                • maignanamurthy
                  New Member
                  • Aug 2007
                  • 12

                  #9
                  i am using vb.net 2005
                  i have one datagridview in my form. it has some columns like

                  EmployeeId, EmployeeName,Ba sicSalary,Allow ences,TotalAmou nt.

                  my problem is the above said datagridview columns realigned automatically, like

                  (EmployeeName,T otalAmount,Allo wences,Employee Id,BasicSalary. )

                  at design time and also run time.
                  this problem occur in other forms in my project also.

                  What is the Problem Here?
                  How to Solve this?

                  Comment

                  • AkiveerPrabhu
                    New Member
                    • Oct 2007
                    • 1

                    #10
                    Hello Friends,

                    I have used in XML and ASP.NET. i can read and write data from XML Files through ASP.Net. it worked on Localhost. but i cannot worked in server. In Server side it readed but it cannot write in server side.

                    Its very urgent.

                    regards,
                    Prabhu

                    Comment

                    Working...