No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Hi .... I want to add a new rows when cell leave event occurs.It shows error like Operation can not be performed in this event handler... here is my code, If PatientDataGridView.CurrentCell.ColumnIndex = 2 Then PatientDataGridView.Rows.Add() End If
Hi .... try this code......... For i = 0 To TempDataset.Tables(0).Rows.Count - 1 Dim Productvalue As Double = 0 Productvalue = Val(TempDataset.Tables(0).Rows(i)("BillAmount").ToString) * Val(TempDataset.Tables(0).Rows(i)("BillAmount").ToString) PatientDataGridView.Rows.Add(TempDataset.Tables(0).Rows(i)("PatientID").ToString, TempDataset.Tables(0).Rows(i)("PatientName").ToString, _ TempDataset.Tables(0).Rows(i)("BillAmount").ToString, TempDataset.Tables(0).Rows(i)("Commission").ToString, Productvalue) Next
The End.
Saranya Asokan