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 HussainRank #423 · 5.9K reputationPosted Jul 19, 2013, 3:37 AM EDT
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
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 18, 2013, 10:22 PM EDT
Try like this
Regards,
Iftikar
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 18, 2013, 10:23 PM EDT
JAYESH AJ97 reputationPosted Jul 18, 2013, 10:38 PM EDT
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
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 18, 2013, 11:08 PM EDT
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
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 18, 2013, 11:19 PM EDT
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/
JAYESH AJ97 reputationPosted Jul 19, 2013, 2:41 AM EDT
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;
JAYESH AJ97 reputationPosted Jul 19, 2013, 3:23 AM EDT
JAYESH AJ97 reputationPosted Jul 19, 2013, 4:03 AM EDT
and
DataTable ResultTable
*** why should by SourceTable
JAYESH AJ97 reputationPosted Jul 19, 2013, 8:12 PM EDT
and
DataTable ResultTable
*** why should by SourceTable
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 19, 2013, 8:29 PM EDT
DataTable resulttable is the table created with incremented row number and merge it to DataTable Sourcetable.
then they bind it to datagrid