PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET last visible row of datagrid?

Reply

last visible row of datagrid?

 
Thread Tools Rate Thread
Old 27-10-2004, 07:57 PM   #1
Lore Leuneog
Guest
 
Posts: n/a
Default last visible row of datagrid?


Hello

How can I get the rownumber and the first column value of the last visible
row in the Windows.Forms.DataGrid?

Thank you
Sincerely
Lore


  Reply With Quote
Old 28-10-2004, 05:29 AM   #2
Tarakeshwar L
Guest
 
Posts: n/a
Default Re: last visible row of datagrid?

int count = dataGrid1.VisibleRowCount;

string strColumnData = dataGrid1[count-2,0].ToString();

I Take the count of the No of rows in the Datagrid and i go to the rowindex,
column index of the datagrid and get the data i need


Regards,
Tarkeshwar
..Net Programmer
Fifth Generation Technologies

"Lore Leuneog" <Lore.Leuneog@gmx.net> wrote in message
news:cloqg3$hu2$00$1@news.t-online.com...
> Hello
>
> How can I get the rownumber and the first column value of the last visible
> row in the Windows.Forms.DataGrid?
>
> Thank you
> Sincerely
> Lore
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off