I have a connection but it throws an error:
baglanti = new DataRelation("baglan",
ds.Tables["tblDeneme"].Columns["KategoriID"],
ds.Tables["tblDeneme"].Columns["AltKategoriID"]);
Error:
An unhandled exception of type 'System.NullReferenceException' occurred in WindowsFormsApplication1.exe