Click here to Skip to main content
15,910,872 members
Home / Discussions / C#
   

C#

 
GeneralRe: Copy or read locked/in use files Pin
stancrm31-May-06 21:50
stancrm31-May-06 21:50 
GeneralRe: Copy or read locked/in use files Pin
nemopeti31-May-06 23:41
nemopeti31-May-06 23:41 
GeneralRe: Copy or read locked/in use files Pin
stancrm31-May-06 23:47
stancrm31-May-06 23:47 
GeneralRe: Copy or read locked/in use files Pin
nemopeti31-May-06 23:54
nemopeti31-May-06 23:54 
QuestionIs it a correct way Pin
engsrini31-May-06 20:43
engsrini31-May-06 20:43 
AnswerRe: Is it a correct way Pin
BadKarma31-May-06 21:33
BadKarma31-May-06 21:33 
AnswerRe: Is it a correct way Pin
InOut.NET31-May-06 21:57
InOut.NET31-May-06 21:57 
Questioncombobox Pin
kjosh31-May-06 20:28
kjosh31-May-06 20:28 
Hi,
My requirement is to set combobox column for deptno column of the table dept.
When insert button is clicked,i write the following code
DataGridViewComboBoxColumn cell = new DataGridViewComboBoxColumn();
cell.DataPropertyName = "DEPTNO";
cell.HeaderText = "dno";
cell.Items.Add(10);
cell.Items.Add(20);
cell.DataSource = ds.Tables["dept"];
cell.ValueMember = "DEPTNO";
cell.DisplayMember = "deptno";
dataGridView1.Columns.Add(cell);
dt=new DataTable();
dt = (DataTable)dataGridView1.DataSource;
DataRow dr = dt.NewRow();
dt.Rows.Add();

dataGridView1.DataSource = dt;

My problem is that combobox column is displayed as a separate column.But it value member set to deptno column of dept table.And when i select 30 from that combo box control goes to deptno=30 row.
I want combox cell is set for deptno column and when we select a value from that combo box column the velue is displayed for that row.
How to do this.
Thanks in advance.

AnswerRe: combobox Pin
InOut.NET31-May-06 22:11
InOut.NET31-May-06 22:11 
QuestionHelp on P/Invoke BSTR* Pin
bluish31-May-06 20:08
bluish31-May-06 20:08 
AnswerRe: Help on P/Invoke BSTR* Pin
rah_sin31-May-06 20:13
professionalrah_sin31-May-06 20:13 
GeneralRe: Help on P/Invoke BSTR* Pin
bluish31-May-06 20:22
bluish31-May-06 20:22 
AnswerRe: Help on P/Invoke BSTR* [modified] Pin
stancrm31-May-06 20:27
stancrm31-May-06 20:27 
Questionupdating and retriving image Pin
leelaraj31-May-06 20:03
leelaraj31-May-06 20:03 
AnswerRe: updating and retriving image Pin
Laubi1-Jun-06 2:19
Laubi1-Jun-06 2:19 
GeneralRe: updating and retriving image Pin
leelaraj2-Jun-06 19:47
leelaraj2-Jun-06 19:47 
QuestionAdding Design script to script component in SSIS using C# Pin
Tarsha31-May-06 19:31
Tarsha31-May-06 19:31 
QuestionUrgent Pin
Shiv531-May-06 17:54
Shiv531-May-06 17:54 
AnswerRe: Urgent Pin
rah_sin31-May-06 18:21
professionalrah_sin31-May-06 18:21 
AnswerRe: Urgent Pin
_AK_31-May-06 18:31
_AK_31-May-06 18:31 
AnswerRe: Urgent Pin
nandank8131-May-06 18:56
nandank8131-May-06 18:56 
Questionwhat is the C# equivalent of PHP crypt() function Pin
Srivalli31-May-06 14:07
Srivalli31-May-06 14:07 
AnswerRe: what is the C# equivalent of PHP crypt() function Pin
Christian Graus31-May-06 15:06
protectorChristian Graus31-May-06 15:06 
Questionhow to create a FillReversibleRectangle blue? Pin
Susuko31-May-06 13:59
Susuko31-May-06 13:59 
Questionusing .Split() without loss Pin
PyroManiak31-May-06 11:57
PyroManiak31-May-06 11:57 

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.