xtragrid

Show message in empty cells in GridView

狂风中的少年 提交于 2019-11-30 18:59:13
问题 I'm importing GridView from excel I need to show a message near every empty cell to give the user information about what it should be writing.. void simpleButton1_Click(object sender, System.EventArgs e) { string[] msg = new string[60]; string[] error = new string[400]; for (int i = 0; i < gridView3.RowCount ; i++) { System.Data.DataRow Rows = gridView3.GetDataRow(i); string cellvalue = Rows[0].ToString(); if (cellvalue == "") { msg[0] = "Missing 'First Name'"; error[i] = msg[0] + " - "; }

Exporting Several XtraGrid Controls to a Single Excel File

空扰寡人 提交于 2019-11-29 12:36:25
I've got several XtraGrid Controls each one containing different information, I get some information about the way in which you can export a XtraGrid to an Excel file in the following direction http://www.devexpress.com/Support/Center/p/Q362120.aspx Now Is there any way to export the each XtraGrid Control to a single Excel file so that every XtraGrid information is exported to a different excel sheet. I tried setting the exporting path direction to the same Excel file, but when the first exporting process is done, the second exporting process just overrides the excel file and so on. I tried

how to get the xtragrid filtered and sorted datasource?

假装没事ソ 提交于 2019-11-28 06:30:00
问题 I have an xtraGrid control (v12.1) binded to a bindingSource, this last gets its data from a LINQ to entities query (EF4.3.1), the end user can filter and sort the gridView, I have a Stimulsoft report that shows the content of the gridView when the user clicks on a PrintListButton, how to get the xtragrid filtered and sorted datasource, in order to attach it to the report? Thanks. 回答1: var data = GetDataView(xtraGridControl1); report.RegData("List", data.ToTable()); public DataView

Exporting Several XtraGrid Controls to a Single Excel File

无人久伴 提交于 2019-11-28 06:27:23
问题 I've got several XtraGrid Controls each one containing different information, I get some information about the way in which you can export a XtraGrid to an Excel file in the following direction http://www.devexpress.com/Support/Center/p/Q362120.aspx Now Is there any way to export the each XtraGrid Control to a single Excel file so that every XtraGrid information is exported to a different excel sheet. I tried setting the exporting path direction to the same Excel file, but when the first

How to get the selected row values of DevExpress XtraGrid?

一个人想着一个人 提交于 2019-11-27 14:02:09
Consider the following picture I get the selected row values in the three textboxes shown in the figure when i click a cell using following code. void dataGridView1_CellClick_1(object sender, DataGridViewCellEventArgs e) { TBGRNo.Text = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); TBSName.Text = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(); TBFName.Text = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString(); } My Question is: how will I do the same thing in DevExpress XtraGrid control?? You can do this in a number of ways. You can use databinding (typical

How to get the selected row values of DevExpress XtraGrid?

穿精又带淫゛_ 提交于 2019-11-26 16:35:07
问题 Consider the following picture I get the selected row values in the three textboxes shown in the figure when i click a cell using following code. void dataGridView1_CellClick_1(object sender, DataGridViewCellEventArgs e) { TBGRNo.Text = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); TBSName.Text = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(); TBFName.Text = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString(); } My Question is: how will I do the same thing in