Click here to Skip to main content
15,904,346 members
Home / Discussions / C#
   

C#

 
GeneralRe: button text to image Pin
Dell.Simmons27-Oct-10 15:17
Dell.Simmons27-Oct-10 15:17 
GeneralRe: button text to image Pin
Luc Pattyn27-Oct-10 16:05
sitebuilderLuc Pattyn27-Oct-10 16:05 
GeneralRe: button text to image Pin
n.podbielski27-Oct-10 21:25
n.podbielski27-Oct-10 21:25 
AnswerRe: button text to image Pin
Ravi Bhavnani27-Oct-10 11:11
professionalRavi Bhavnani27-Oct-10 11:11 
GeneralMessage Removed Pin
27-Oct-10 11:27
Tichaona J27-Oct-10 11:27 
GeneralRe: button text to image Pin
Tichaona J27-Oct-10 11:27
Tichaona J27-Oct-10 11:27 
GeneralRe: button text to image Pin
Richard MacCutchan27-Oct-10 11:34
mveRichard MacCutchan27-Oct-10 11:34 
GeneralRe: button text to image Pin
Ravi Bhavnani27-Oct-10 16:47
professionalRavi Bhavnani27-Oct-10 16:47 
GeneralRe: button text to image Pin
V.27-Oct-10 20:29
professionalV.27-Oct-10 20:29 
GeneralRe: button text to image Pin
Roger Wright27-Oct-10 21:14
professionalRoger Wright27-Oct-10 21:14 
GeneralRe: button text to image Pin
V.27-Oct-10 21:31
professionalV.27-Oct-10 21:31 
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 

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.