Click here to Skip to main content
15,897,185 members
Home / Discussions / C#
   

C#

 
QuestionMultilingual Report [modified] Pin
Syed Shahid Hussain27-Oct-10 9:36
Syed Shahid Hussain27-Oct-10 9:36 
AnswerRe: Multilingual Report Pin
nlarson1127-Oct-10 10:36
nlarson1127-Oct-10 10:36 
AnswerRe: Multilingual Report Pin
Tichaona J27-Oct-10 11:16
Tichaona J27-Oct-10 11:16 
GeneralRe: Multilingual Report Pin
Syed Shahid Hussain27-Oct-10 11:29
Syed Shahid Hussain27-Oct-10 11:29 
QuestionAdobe Flash to C# Pin
p30graphic27-Oct-10 6:48
p30graphic27-Oct-10 6:48 
AnswerRe: Adobe Flash to C# Pin
Dave Kreskowiak27-Oct-10 7:40
mveDave Kreskowiak27-Oct-10 7:40 
AnswerRe: Adobe Flash to C# Pin
fjdiewornncalwe27-Oct-10 10:11
professionalfjdiewornncalwe27-Oct-10 10:11 
Questionhow to refer by name Pin
Jassim Rahma27-Oct-10 4:53
Jassim Rahma27-Oct-10 4:53 
I am using the following code to populate xtraGrid from PostgeSQL but as you see I am using the data_table.Columns[0].ToString() and data_table.Columns[1].ToString() to refer to the columns because it's not accepting the "field_name"

what can I do to make refer to the field name by name only instead of the data_table.........!


sql_connection = new NpgsqlConnection(ConfigurationManager.ConnectionStrings["JassimSQL"].ConnectionString);

sql_connection.Open();
sql_command = new NpgsqlCommand("populate_personal_info_title2", sql_connection);
sql_command.CommandType = CommandType.StoredProcedure;
sql_adapter = new NpgsqlDataAdapter();
sql_adapter.SelectCommand = sql_command;
data_set = new DataSet();
DataTable data_table = new DataTable(); ;
sql_adapter.Fill(data_table);

cboTitle.Properties.ValueMember = data_table.Columns[0].ToString();
cboTitle.Properties.DisplayMember = data_table.Columns[1].ToString();
cboTitle.Properties.DataSource = data_table;

cboTitle.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo(data_table.Columns[1].ToString(), 50, "education_name"));
cboTitle.Properties.ShowHeader = false;
cboTitle.Properties.NullText = "UNSPECIFIED";
cboTitle.Properties.PopupSizeable = false;
cboTitle.Properties.PopupHeaderStyle.HAlignment = DevExpress.Utils.HorzAlignment.Default;
cboTitle.Properties.ShowFooter = false;
cboTitle.Properties.PopupWidth = 50;

AnswerRe: how to refer by name Pin
Ennis Ray Lynch, Jr.27-Oct-10 5:01
Ennis Ray Lynch, Jr.27-Oct-10 5:01 
GeneralRe: how to refer by name Pin
Jassim Rahma27-Oct-10 5:04
Jassim Rahma27-Oct-10 5:04 
GeneralRe: how to refer by name Pin
Ennis Ray Lynch, Jr.27-Oct-10 5:24
Ennis Ray Lynch, Jr.27-Oct-10 5:24 
AnswerRe: how to refer by name Pin
Luc Pattyn27-Oct-10 5:02
sitebuilderLuc Pattyn27-Oct-10 5:02 
AnswerRe: how to refer by name Pin
_Erik_27-Oct-10 5:28
_Erik_27-Oct-10 5:28 
QuestionChange the properties of the controls Pin
thomforum27-Oct-10 4:04
thomforum27-Oct-10 4:04 
AnswerRe: Change the properties of the controls Pin
kadaoui el mehdi27-Oct-10 4:11
kadaoui el mehdi27-Oct-10 4:11 
AnswerRe: Change the properties of the controls Pin
kadaoui el mehdi27-Oct-10 4:16
kadaoui el mehdi27-Oct-10 4:16 
AnswerRe: Change the properties of the controls Pin
OriginalGriff27-Oct-10 4:19
mveOriginalGriff27-Oct-10 4:19 
AnswerRe: Change the properties of the controls Pin
Luc Pattyn27-Oct-10 4:34
sitebuilderLuc Pattyn27-Oct-10 4:34 
GeneralRe: Change the properties of the controls Pin
OriginalGriff27-Oct-10 4:53
mveOriginalGriff27-Oct-10 4:53 
GeneralRe: Change the properties of the controls Pin
Luc Pattyn27-Oct-10 4:58
sitebuilderLuc Pattyn27-Oct-10 4:58 
GeneralMessage Removed Pin
27-Oct-10 7:38
flflshop27-Oct-10 7:38 
GeneralRe: Change the properties of the controls Pin
OriginalGriff27-Oct-10 8:37
mveOriginalGriff27-Oct-10 8:37 
GeneralRe: Change the properties of the controls Pin
thomforum27-Oct-10 7:51
thomforum27-Oct-10 7:51 
GeneralRe: Change the properties of the controls Pin
OriginalGriff27-Oct-10 8:14
mveOriginalGriff27-Oct-10 8:14 
GeneralRe: Change the properties of the controls Pin
Luc Pattyn27-Oct-10 9:14
sitebuilderLuc Pattyn27-Oct-10 9:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.