|
-
Sep 20th, 2001, 01:28 AM
#1
Thread Starter
Member
Set a value in a DataGrid cell
I work in VB6 with a DataGrid control. I try to validate data in a BeforeColUpdate event of DataGrid. When the value is wrong I want to correct the value. I use the folowing statement, like in VB Help documentation:
DataGrid1.Columns(ColIndex).Value=correct_value
but this statement doesn't work - it does nothing, the old value remains.
How can I set a value in a DataGrid column ?
-
Sep 20th, 2001, 02:18 AM
#2
Lively Member
hi
i have not ever did this but anyway u use this and check
datagrid1.coloumns.item(index of ur item).text= correct_value
bye
-
Sep 20th, 2001, 03:24 AM
#3
Thread Starter
Member
Answer
I have got the answer.
The value setting have to be done in the After corresponding events, not in before.
Thanks, anyway!
-
Mar 6th, 2025, 01:35 PM
#4
New Member
Re: hi
 Originally Posted by muralidhary
i have not ever did this but anyway u use this and check
datagrid1.coloumns.item(index of ur item).text= correct_value
bye
Yes indeed... Thank you... (VB6 ROCKS! )
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
|