Datagridview control in .net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • siri11
    New Member
    • Sep 2007
    • 38

    Datagridview control in .net

    Hi..
    Can anyone plzzz suggest me how to bind data to Datagridview control from database (Sql server 2000) in c#.net(windows Application).I have one single record in my table,this single record must be displayed in the grid in single column.Plzz provide the code.One row from table must be displayed as one column in the gird.

    Thanks in advance,
    siri
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by siri11
    Hi..
    Can anyone plzzz suggest me how to bind data to Datagridview control from database (Sql server 2000) in c#.net(windows Application).I have one single record in my table,this single record must be displayed in the grid in single column.Plzz provide the code.One row from table must be displayed as one column in the gird.

    Thanks in advance,
    siri
    see here for process of Binding datagridview...

    for your 2 nd query you need to create a temporary datatable with the table information by looping through the records....othe rwise a row cannot be displayed as a column in the gridview...I think

    Comment

    Working...