473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

DataGride

i need to create adataGride that retrieve data from the DataBase
this data is arabic , i need to align the columns & the text inside the
column
to the right ??
i used
this.DGTextBoxColumn.Alignment =
System.Windows.Forms.HorizontalAlignment.Right;
but it didnt work !

also
my select statemnet is selecting from 2 tables
this.DSFucalities = new System.Data.DataSet("Alex_Univ");
as Alex_Univ is the name of the table , how to tell the Dataset that
it shall connect to 2 tables as when i wrote
this.DSFucalities = new System.Data.DataSet("Alex_Univ","Departements");
it didnt accept it

my select statement is
string str_sel="select Alex_Uviv.F_name as 'Faculity' ,
count(Departements.Dept_no) as 'Number of Departement' from Alex_Univ
,Departements where Alex_Univ.F_no = Departements.F_no ";

where in the count(Departements.Dept_no) i need to count the
number of departements in each faculity ??
so eachtime i run that statement it give me error at this point
this.sqlDataAdapterFuculities.Fill(DSFucalities);
if this question is not related to that group plz direct me to
the correct one

Regards ;
Nov 16 '05 #1
0 1519

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: thejackofall | last post by:
I added a label server control in my aspx file. In the code behind, the IDE does not generate the corresponding object like it does with buttons and other objects. What am I doing wrong? Is...
2
by: scott | last post by:
Hi all First off, thank you for any one that can help. I have a problem trying to link a DataGrideTableStyle to a DataGrid. I have a dataset which reads from a file a xml schema and a xml...
2
by: Saket Mundra | last post by:
How do i input and save more than one row in a database table at a time ? Which control should i use on the form to accept input when i do not know how many rows i have to add at runtime ? --...
15
by: Bob | last post by:
Hello: I'm building a simple windows database application that has two tables with One to One relationships on MS Access tables. I know what your thinking. Why not just use one table? ...
1
by: Reggie | last post by:
Hi and TIA. I have a datagride that has one field that is a true/false. This data is returned from an sql db table and the data type is bit. The data gride always displays true or false while the...
0
by: debnath1981 | last post by:
1. How to show all data (All coloum and all row) from a MS-Access Database table in Rich Text Box Just like a Crystall Report/Datagride view (Using MS-Access Database) 2.Complete code for...
2
by: bhavane | last post by:
how can i place datagrid in asp.net2.0 & where i can find in toolbox
2
by: mahendraseed | last post by:
Hi, I need help Im trying to access .xlsx extention file in datagride, But I am getting Error Msg like Format not supported by OleDb. Plz Reply
0
by: AliRezaGoogle | last post by:
Dear members, I have a datagrid and a textbox on my form. I bound both of them to a common datasource( an arbitrary datatable). When I change a text inside textbox I expect that value of same...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.