#region SAVE AND UPDATE
for (int i = 0; i < rowCount; i++)
{
//CHECK ROW IS NOT SELECTED
if (Convert.ToBoolean(dataGridView1.Rows[i].Cells[0].Value) == false)
{
//ROW MUST HAVE STRING VALUE(NOT NULL OR EMPTY)
if (dataGridView1.Rows[i].Cells[1].Value != null && string.IsNullOrEmpty(dataGridView1.Rows[i].Cells[1].Value.ToString()) == false)
{
//IF ID IS NULL THAN SAVE
if (dataGridView1.Rows[i].Cells[5].Value == null)
{
}
Plzzz, Anyone Can Help Me.
Sudhakar ChaudharyPosted Feb 7, 2013, 12:23 PM
ZAIN ULARIFEENPosted Feb 7, 2013, 8:19 AM
how to write this types code for the datagrid.
ZAIN ULARIFEENPosted Feb 7, 2013, 8:13 AM
this is for windows application.
plzzz.........................
Jignesh TrivediPosted Feb 6, 2013, 10:39 PM
are you looking datagrid for windows based application or web base?
for web base please refer
http://www.c-sharpcorner.com/uploadfile/anjudidi/example-of-datagrid-in-Asp-Net/
Sudhakar ChaudharyPosted Feb 6, 2013, 1:01 PM