|
-
Feb 2nd, 2004, 04:39 AM
#1
Thread Starter
New Member
Datagrid Problem - Pls help!!!
Hi,
Can anyone pls fill out the Question marked section in the following data set validation code?
I want to select the row that caused the error in the grid.
If the grid has not been sorted, I can simply put
dgrDataGrid.Select(intRow). But since the grid can be sorted, the ordinal positions of the row in the dataset and the datagrid would differ. But I know BindingManger can be used, but don't know how to locate the dataset's row in the datagrid.
For intRow=0 to gdstGrid.Tables(0).Rows.Count-1
drwDetailRow=gdstGrid.Tables(0).Rows(intRow)
If Not ValidateDetailRow(drwDetailRow) Then
SetStatusBarMsg(drwDetailRow.GetColumnError(0))
dgrDataGrid.Select(???)
End If
Next
(Btw, inside ValidateDetailRow() I set the columnerror.)
Any help would be greatly appreciated...
Thanks,
Mohan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|