Location:
Search - datagridview1
Search list
Description: 点击form1窗体上的comboBox下拉列表框然后弹出一个form2窗体,form2窗体上有一个dataGridView1,然后双击dataGridView1的某一行数据,会把选中的该行数据传递到form1,并自动填充form1中的comboBox和textbox. form2窗体中的主要事件
Platform: |
Size: 13074 |
Author: zhaobing101 |
Hits:
Description: 点击form1窗体上的comboBox下拉列表框然后弹出一个form2窗体,form2窗体上有一个dataGridView1,然后双击dataGridView1的某一行数据,会把选中的该行数据传递到form1,并自动填充form1中的comboBox和textbox. form2窗体中的主要事件-Form1 form click on the combobox drop-down list box and then pop up a form2 form, form2 form, there is a dataGridView1, then double-click a line of dataGridView1 data, will select the data transmission line to the form1, and automatically form1 fill the combobox and textbox. form2 form the main event
Platform: |
Size: 13312 |
Author: zhaobing101 |
Hits:
Description: 好东西啊,我在找了好久才找到的,初学者非常有用的东西哦;-Ah good stuff, I was looking for a long time to find and very useful things for beginners Oh
Platform: |
Size: 1024 |
Author: msq |
Hits:
Description: 导出Excel组件(B/S或C/S都可以用)
using GemBox.ExcelLite //引用文件
ExcelFile excelFile = new ExcelFile()
ExcelWorksheet sheet = excelFile.Worksheets.Add("WolfSpider")
int columns = dataGridView1.Columns.Count
int rows = dataGridView1.Rows.Count
for (int j = 0 j < columns j++ )
{
sheet.Cells[0, j].Value = dataGridView1.Columns[j].HeaderText
}
for (int i = 1 i <= rows i++)
{
for (int j = 0 j < columns j++)
{
sheet.Cells[i, j].Value = dataGridView1[j, i-1].Value
}
}
excelFile.SaveXls("./guyun.xls") //这里的文件名可以任意定义 -Excel export component (B/S or C/S can be used) using GemBox.ExcelLite // reference document ExcelFile excelFile = new ExcelFile () ExcelWorksheet sheet = excelFile.Worksheets.Add ( " WolfSpider" ) int columns = dataGridView1.Columns.Count int rows = dataGridView1.Rows.Count for (int j = 0 j < columns j++) (sheet.Cells [0, j]. Value = dataGridView1.Columns [j]. HeaderText ) for (int i = 1 i < = rows i++) (for (int j = 0 j < columns j++) (sheet.Cells [i, j]. Value = dataGridView1 [j, i-1]. Value )) excelFile.SaveXls ( " ./guyun.xls" ) // here the file name can be defined
Platform: |
Size: 2094080 |
Author: lclc88com |
Hits:
Description: 利用datagriedview操作DBF文件-operate DBF file by using DataGridView
Platform: |
Size: 1256448 |
Author: 刘硕 |
Hits:
Description: 点击form1窗体上的comboBox下拉列表框然后弹出一个form2窗体,form2窗体上有一个dataGridView1,然后双击dataGriidView1的某一行数据,会把选中的该行数据传递到fform1,并自动填充form1中的comboBox与textbox. form2窗体中的主要事件
-ComboBox drop-down list box, click on the form1 form and then pop up a form2 form, form2 form a dataGridView1, and then double-click a line of data dataGriidView1, will select the row of data is passed to the fform1 and automatically fill the form1 major events in the comboBox with the textbox. form2 form
Platform: |
Size: 13312 |
Author: geli |
Hits:
Description:
表名:liaotian
字段:name context
Me.DataGridView1.FirstDisplayedScrollingRowIndex = DataGridView1.RowCount - 1
自动显示在底部
-Table name the: liaotian field: name context Me.DataGridView1.FirstDisplayedScrollingRowIndex = DataGridView1.RowCount- 1 automatically displayed at the bottom
Platform: |
Size: 150528 |
Author: 彭学 |
Hits:
Description: 主要通过DataGridView表格来绑定自动输入自定义类的二维数组数据
数组输入时 表格数据源 DataGridView1.DataSource = [class].getTable()
所有数据存于dTable中
不能调用变量获取数据,因为这是针对二维数组扩展的
getValues(object[] rtobjs)取所有数据数组
getValue(int rowIndex,object rtobj)取每一行数据-DataGridView form to bind automatically entered in the two-dimensional array of the custom class array of data input forms data source DataGridView1.DataSource = [class]. GetTable () all data stored in the dTable can not call variables to get the data, because it is extended for two-dimensional array the getValues (object [] rtobjs) to take all the data array getValue (int rowIndex, object rtobj) take each row of data
Platform: |
Size: 3072 |
Author: lqh |
Hits: