Click here to Skip to main content
15,881,866 members

Comments by syed shanu (Top 200 by date)

syed shanu 25-Jan-15 21:19pm View    
Hi,
Are you looking result like this.
C# Code
dataGridView1.RowCount = 9;
int IncValue=0;

for (int iVal = 1; iVal <= 7; iVal++)
{
IncValue = IncValue + iVal;
dataGridView1.Rows[iVal].Cells[0].Value = IncValue;

}

VB.NET CODE

DataGridView1.RowCount = 9
Dim IncValue As Integer = 0

For i As Integer = 1 To 7
IncValue=IncValue+i;
DataGridView1.Rows(i).Cells(0).Value = IncValue
Next
syed shanu 11-Jan-15 19:34pm View    
Check my article might be helpful to you.
http://www.codeproject.com/Articles/792540/External-Program-Text-Read-using-VB-NET
syed shanu 11-Jan-15 19:28pm View    
Do you mean after you update data you want to refresh the Datagridview and display with update data.If so then after update you have to rebind the Datagridview.
syed shanu 8-Jan-15 22:10pm View    
Check with Alert message like this
function ChangePic() {
if (document.getElementById("bulb").src == "IMAGES/pic_bulboff.gif")
{
alert("yes");
document.getElementById("bulb").src = "IMAGES/pic_bulbon.gif";
}
else
{
alert("No");
document.getElementById("bulb").src = "IMAGES/pic_bulboff.gif";
}
}
syed shanu 8-Jan-15 4:14am View    
You can create a Dummy datatable or Dataset with one record of empty data and bidn to datagrid.Mean time for the Comboxbox you can add your actual datasource.Hope this will help you.