We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataGrid Cell navigaton error

Thread ID:

Created:

Updated:

Platform:

Replies:

507 Jul 2,2002 09:37 AM UTC Jul 4,2002 04:56 AM UTC WinForms 5
loading
Tags: FAQ
Peter
Asked On July 2, 2002 09:37 AM UTC

Dim i as int32 Dim j as int32 For i=0 to rows For j=0 to cols DataGrid(i)(j).someproperty="something" Next Next This doesn't work in VB.NET. I'm getting an error saying: "Can't convert integer into System.Windows.Forms.DataGridCell" Anyone help?? I'm trying to go through each cell of the grid. Thank you.

Clay Burch [Syncfusion]
Replied On July 2, 2002 12:32 PM UTC

Try DataGrid(i,j).someproperty = "something" provided 'someproperty' takes a string...

Peter
Replied On July 3, 2002 09:18 AM UTC

Hi Clay, thank you. It works, meaning I'm not getting this error any more. But now the only property I can reach is DataGrid(1,1).GetType Please help. I'm trying to reach Text property. Is there any sample I can look at. Thank you SO very much.

Clay Burch [Syncfusion]
Replied On July 3, 2002 05:29 PM UTC

If the cell value is a string, you can get it just by dim cellValue as String = datagrid1(i,j)

Administrator [Syncfusion]
Replied On July 4, 2002 04:56 AM UTC

> If the cell value is a string, you can get it just by > > dim cellValue as String = datagrid1(i,j) Hi peter. if the datagrid cellvalue accepts string then Just say(type) DataGrid(i,j) = "Vipul" Hope this helps

Vipul Bhatt
Replied On July 4, 2002 04:56 AM UTC

> If the cell value is a string, you can get it just by > > dim cellValue as String = datagrid1(i,j) Hi peter. if the datagrid cellvalue accepts string then Just say(type) DataGrid(i,j) = "Vipul" Hope this helps

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;