changing data of datagrid in run time

Discussion in 'Software' started by ahmedbasheer, Jun 28, 2011.

  1. ahmedbasheer

    ahmedbasheer Private E-2

    hello everybody
    i have a problem in changing the data displayed in datagrid and i have use the following code for this purpose but it doesn't work:
    dim SQL as string
    SQL = " SELECT * FROM Tablename WHERE no = 12 "
    ADODC1.Recordsource = SQL
    ADODC1.Refresh

    The code above deals with a table ,and this table is a part of a database with three tables connected together by relationships.
    I am asking if the relationships are making a problem or what?
    If anyone can help me as faster as possible i'll be very greateful
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds