Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo In DataGridView - Part 2
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Combo In DataGridView - Part 2
Miscellaneous
Thread ID:
01443811
Message ID:
01443811
Views:
92
I have successfully added a combox to a DataGridView:
DataGridViewComboBoxColumn colType = new DataGridViewComboBoxColumn();
colType.HeaderText = "Total";
colType.DropDownWidth = 90;
colType.Width = 90;
colType.MaxDropDownItems = 15;
grdColumnInfo.Columns.Insert(0, colType);
colType.Items.AddRange("", "Calc", "No Calc", "Pending");
grdColumnInfo.Columns[7].DataPropertyName = "Total";
In my SQL table is a column called Total. How do I set this combo to show the value from SQL?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform