DataGrid problem

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2007
Posts: 29
Reputation: shahriar2403 is an unknown quantity at this point 
Solved Threads: 0
shahriar2403 shahriar2403 is offline Offline
Light Poster

DataGrid problem

 
0
  #1
Feb 21st, 2008
Is there any way to indicate row number of a datagrid? I mean
list1.listindex = 1 means 2nd item of that list box,
how can i indicate such type in datagrid?
I want to select a row from datagrid and with my given criteria depending on the row number or such indicating number, value will be changed in text box. how can i indicate row?
Please help me.....
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 537
Reputation: choudhuryshouvi is an unknown quantity at this point 
Solved Threads: 49
choudhuryshouvi's Avatar
choudhuryshouvi choudhuryshouvi is offline Offline
Posting Pro

Re: DataGrid problem

 
0
  #2
Feb 21st, 2008
DataGrid1.Row
Shouvik_The_Expert_Coder
Have a problem? Don't worry just give me a call and I'll fix it for you.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 122
Reputation: cometburn is an unknown quantity at this point 
Solved Threads: 19
cometburn's Avatar
cometburn cometburn is offline Offline
Junior Poster

Re: DataGrid problem

 
0
  #3
Feb 21st, 2008
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Private Sub DataGrid1_Click()
  2. dg.MarqueeStyle = dbgHighlightRowRaiseCell
  3. myVariable = DataGrid1.Columns(0).Value
  4. End Sub
Proud to be Philippine made...
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 1
Reputation: ritstu is an unknown quantity at this point 
Solved Threads: 0
ritstu ritstu is offline Offline
Newbie Poster

Re: DataGrid problem

 
0
  #4
Apr 14th, 2008
DataGrid1.FirstRow + DataGrid1.Row - 1

FirstRow is the row number of the first row that is visible in the grid.
Row is the row number of the rows that are visible.
-1 is to offset Firstrow which starts at 1
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC