Click here to Skip to main content
   

C#

 
QuestionThread Freeze when trying Abort PinmemberMember 1098515215-Aug-14 13:17 
GeneralRe: Thread Freeze when trying Abort PinmemberPIEBALDconsult15-Aug-14 13:47 
QuestionSummary Report in GridView [modified] Pinmembersk_ko14-Aug-14 23:02 
AnswerRe: Summary Report in GridView PinmemberChris Quinn14-Aug-14 23:36 
AnswerRe: Summary Report in GridView PinprofessionalMycroft Holmes15-Aug-14 0:00 
GeneralScope of Share point and Silverlight PinmemberMember 1059394814-Aug-14 4:40 
GeneralRe: Scope of Share point and Silverlight PinprotectorRichard MacCutchan14-Aug-14 5:22 
Questionhow do i make each combo box to show a dropdown of the value of the Quantity it has fetched. PinmemberMember 1050484913-Aug-14 10:02 
Please how can I achieve this in a datagridview that when data is fetched from database, that each combo box will show a dropdown of the value of the Quantity it has fetched.
 
for an instance, if x gets 10,12,15,9,5,3
the first combobox will show a dropdown of 1 to 10, the second will show 1 to 12,...
 

DataGridViewComboBoxColumn dv = new DataGridViewComboBoxColumn();
dv.HeaderText = "myCombobox";

cmd.Connection = conn;
cmd.CommandType = CommandType.Text;
cmd.CommandText = "Select * from Toolz";
conn.Open();
reader = cmd.ExecuteReader();
while (reader.Read())
{
x = Reader.GetInt32(3);
}
foreach (DataGridViewRow dvx in dataGridView3.Rows)
{
y = Convert.ToInt32(dvx.Cells[3].Value.ToString());
}
for (g = 0; g < y; g++) ;
List xl = new List();
xl.Add(g);
 
foreach (DataGridViewComboBoxColumn dvx in dataGridView3.Rows)
{
dv.Items.Add(xl);
}
Keep the Dream Alive..

SuggestionRe: how do i make each combo box to show a dropdown of the value of the Quantity it has fetched. PinmvpRyanDev13-Aug-14 10:24 
QuestionHow to increment div count in path PinmemberMember 1098388513-Aug-14 7:09 
Questionc# Play Video Fullscreen PinmemberMember 416962813-Aug-14 6:20 
AnswerRe: c# Play Video Fullscreen PinprofessionalSimon_Whale13-Aug-14 6:41 
GeneralRe: c# Play Video Fullscreen PinmemberMember 416962813-Aug-14 6:53 
GeneralRe: c# Play Video Fullscreen PinmvpDave Kreskowiak13-Aug-14 7:05 
GeneralRe: c# Play Video Fullscreen PinmemberMember 416962813-Aug-14 9:42 
GeneralRe: c# Play Video Fullscreen PinmvpDave Kreskowiak13-Aug-14 13:27 
GeneralRe: c# Play Video Fullscreen PinprofessionalBernhard Hiller13-Aug-14 22:48 
Question[CheckBox ComboBox] Strange problem with ComboBox.CheckBoxItems[].Checked = true PinmemberMember 1062093513-Aug-14 5:17 
SuggestionRe: [CheckBox ComboBox] Strange problem with ComboBox.CheckBoxItems[].Checked = true PinprofessionalRichard Deeming13-Aug-14 5:57 
GeneralRe: [CheckBox ComboBox] Strange problem with ComboBox.CheckBoxItems[].Checked = true PinmemberMember 1062093513-Aug-14 21:02 
QuestionRegarding the usage of generic in real life PinmemberTridip Bhattacharjee12-Aug-14 22:20 
AnswerRe: Regarding the usage of generic in real life PinmemberManfred R. Bihy12-Aug-14 22:51 
GeneralRe: Regarding the usage of generic in real life PinmemberTridip Bhattacharjee13-Aug-14 0:18 
GeneralRe: Regarding the usage of generic in real life PinmemberDebabrata TPX13-Aug-14 0:49 
GeneralRe: Regarding the usage of generic in real life PinmemberTridip Bhattacharjee13-Aug-14 22:25 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 30 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid