Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
AnswerRe: cd database Pin
Christian Graus9-Nov-09 21:07
protectorChristian Graus9-Nov-09 21:07 
GeneralRe: cd database Pin
dan!sh 9-Nov-09 21:20
professional dan!sh 9-Nov-09 21:20 
AnswerCross Post. Pin
Pete O'Hanlon10-Nov-09 1:11
mvePete O'Hanlon10-Nov-09 1:11 
Questionabout culture in c# Pin
vijaylumar9-Nov-09 19:35
vijaylumar9-Nov-09 19:35 
AnswerRe: about culture in c# Pin
Christian Graus9-Nov-09 19:41
protectorChristian Graus9-Nov-09 19:41 
GeneralRe: about culture in c# Pin
vijaylumar9-Nov-09 20:43
vijaylumar9-Nov-09 20:43 
GeneralRe: about culture in c# Pin
Christian Graus9-Nov-09 21:03
protectorChristian Graus9-Nov-09 21:03 
QuestionListBox and Index Pin
dolnar9-Nov-09 19:09
dolnar9-Nov-09 19:09 
AnswerRe: ListBox and Index Pin
Christian Graus9-Nov-09 19:42
protectorChristian Graus9-Nov-09 19:42 
GeneralRe: ListBox and Index Pin
dolnar9-Nov-09 20:00
dolnar9-Nov-09 20:00 
GeneralRe: ListBox and Index Pin
Christian Graus9-Nov-09 21:04
protectorChristian Graus9-Nov-09 21:04 
GeneralRe: ListBox and Index Pin
dolnar9-Nov-09 20:15
dolnar9-Nov-09 20:15 
GeneralRe: ListBox and Index Pin
Christian Graus9-Nov-09 21:05
protectorChristian Graus9-Nov-09 21:05 
GeneralRe: ListBox and Index Pin
dolnar9-Nov-09 21:34
dolnar9-Nov-09 21:34 
AnswerRe: ListBox and Index Pin
Luc Pattyn10-Nov-09 1:21
sitebuilderLuc Pattyn10-Nov-09 1:21 
Questionnumber of time a window has been opened Pin
shalu_139-Nov-09 18:38
shalu_139-Nov-09 18:38 
AnswerRe: number of time a window has been opened Pin
Christian Graus9-Nov-09 18:48
protectorChristian Graus9-Nov-09 18:48 
AnswerRe: number of time a window has been opened Pin
dan!sh 9-Nov-09 18:54
professional dan!sh 9-Nov-09 18:54 
QuestionJanus Grid Pin
AndieDu9-Nov-09 18:25
AndieDu9-Nov-09 18:25 
AnswerRe: Janus Grid Pin
AndieDu10-Nov-09 17:05
AndieDu10-Nov-09 17:05 
QuestionError:unable to cast object of type Pin
mjawadkhatri9-Nov-09 18:20
mjawadkhatri9-Nov-09 18:20 
AnswerRe: Error:unable to cast object of type Pin
N a v a n e e t h9-Nov-09 18:27
N a v a n e e t h9-Nov-09 18:27 
GeneralRe: Error:unable to cast object of type Pin
mjawadkhatri9-Nov-09 18:32
mjawadkhatri9-Nov-09 18:32 
QuestionCan't get depth chart to display Pin
rooster21549-Nov-09 18:09
rooster21549-Nov-09 18:09 
QuestionDataGridViewComboBoxColumn not showing values Pin
sachinkalse9-Nov-09 17:42
sachinkalse9-Nov-09 17:42 
Hi All,
I did raise this question yesterday also, but its not showing up in the message board, thus pasting it again.

I have a DataGridView where in I am trying to add DataGridViewComboBoxColumn. Though the column is getting added but the combobox is empty.

<br />
DataGridViewComboBoxCell cell = new DataGridViewComboBoxCell();<br />
cell.Items.Add("One");<br />
cell.Items.Add("Two");<br />
cell.Items.Add("Three");<br />
DataGridViewComboBoxColumn column = new DataGridViewComboBoxColumn();<br />
column.HeaderText = "SELECT";<br />
column.Name = "ItemSelect";<br />
column.CellTemplate = cell;<br />
column.DropDownWidth = 160;<br />
column.Width = 90;<br />
column.MaxDropDownItems = 3;<br />
column.FlatStyle = FlatStyle.Flat;<br />
column.ReadOnly = true;<br />
//column.Items.AddRange("One", "Two", "Three"); -- I tried this way too<br />
myDataGridView.Columns.Insert(0, column);<br />


After displaying the values which event I should handle to get the selected value in combobox?

Thanks in Advance

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.