serial No field 1,2,3 how can display
46 NAHUL ANTONY 2013-02-26 16:15:01.000 57000.00
48 MANEESH M 2013-02-26 16:15:01.250 62000.00
73 PRINCE THOMAS 2013-04-01 09:05:16.000 55000.00
Loading
Iftikar HussainPosted Jul 19, 2013, 7:37 AM
DataTable dt = new DataTable();
dt = objLoanEntryBL.fnLoanAmountDisplay(dcLoan_Amt, start, last);
dataGridView1.DataSource = AutoNumberedTable(dt);
dataGridView1.Columns[0].Width = 95;
dataGridView1.Columns[1].Width = 280;
dataGridView1.Columns[2].Width = 71;
dataGridView1.Columns[3].Width = 150;
Regards,
Iftikar
Sanjeeb LenkaPosted Jul 20, 2013, 12:29 AM
DataTable resulttable is the table created with incremented row number and merge it to DataTable Sourcetable.
then they bind it to datagrid
JAYESH AJPosted Jul 20, 2013, 12:12 AM
and
DataTable ResultTable
*** why should by SourceTable
JAYESH AJPosted Jul 19, 2013, 8:03 AM
and
DataTable ResultTable
*** why should by SourceTable
JAYESH AJPosted Jul 19, 2013, 7:23 AM
JAYESH AJPosted Jul 19, 2013, 6:41 AM
page load any calling
******** This link using S.No. last display table
frist display
button click
***********
if (comboBox1.Text == "0 - 5000")
{
start = 0;
last = 5000;
}
if (comboBox1.Text == "5000 - 10000")
{
start = 5000;
last = 10000;
}
if (comboBox1.Text == "10000 - 25000")
{
start = 10000;
last = 25000;
}
if (comboBox1.Text == "25000 - 100000")
{
start = 25000;
last = 100000;
}
if (comboBox1.Text == "Above 100000")
{
start = 100000;
last = 500000;
}
DataTable dt = new DataTable();
dt = objLoanEntryBL.fnLoanAmountDisplay(dcLoan_Amt, start, last);
dataGridView1.DataSource = dt;
this.dataGridView1.DataSource = AutoNumberedTable(dt);
dataGridView1.Columns[0].Width = 95;
dataGridView1.Columns[1].Width = 280;
dataGridView1.Columns[2].Width = 71;
dataGridView1.Columns[3].Width = 150;
Sanjeeb LenkaPosted Jul 19, 2013, 3:19 AM
http://www.dotnetspark.com/kb/298-auto-generate-row-number-to-datagridview.aspx
http://www.c-sharpcorner.com/uploadfile/santowebster/how-to-add-an-autonumber-column-in-a-datagridview/
Iftikar HussainPosted Jul 19, 2013, 3:08 AM
http://www.techexample.com/how-to-create-auto-number-serial-number-row-number-in-datagridview-in-c-sharp-windows-application/
this.dataGridView1.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.dataGridView1_CellValueNeeded);
Regards,
Iftikar
JAYESH AJPosted Jul 19, 2013, 2:38 AM
c# windows
*************
serial No field 1,2,3 how can display
46 NAHUL ANTONY 2013-02-26 16:15:01.000 57000.00
48 MANEESH M 2013-02-26 16:15:01.250 62000.00
73 PRINCE THOMAS 2013-04-01 09:05:16.000 55000.00
Riyaz AkhtarPosted Jul 19, 2013, 2:23 AM
Iftikar HussainPosted Jul 19, 2013, 2:22 AM
Try like this
Regards,
Iftikar