in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Identifying the selected rows on C1TrueDBGrid

Last post 12-10-2007 12:53 PM by programatix. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-04-2007 6:34 AM

    Identifying the selected rows on C1TrueDBGrid

    Hi,

    I am Jeneesh. I am at first time for using this componentOne.
    i also have this same problem for identifying the selected rows on C1TrueDBGrid.

    I tried much ways....like

    dgdTariformList.SelectedStyle.BackColor = Color.DodgerBlue
    dgdTariformList.SelectedStyle.BackColor2 = Color.DodgerBlue

    How can i solve this...
    Plz help me.............. Thanks in advance......

    My id : jeneeshijk@yahoo.com or
    you can contact me on jeneesh.kv@eteamindia.com..

    Filed under: , ,
  • 12-10-2007 12:53 PM In reply to

    Re: Identifying the selected rows on C1TrueDBGrid

    The selected row is return by the .Row property... but it is the row number, not the DataRow. To get the DataRow, do something like this,
     
    dgdTariformList.Item(dgdTariformList.Row)
     
    The returned object is normally the DataViewRow of the DataSource. If you are using a DataTable, then normally it is DataViewRow, if you are using C1DataTableExpress, it will be SimpleTableViewRow. Anyway to check the real object returned, you can try the TypeOf() method or try debuging the code.
     
    Hope this help.
     
    "jeneesh" wrote in message news:200084@10.0.1.98...

    Hi,

    I am Jeneesh. I am at first time for using this componentOne.
    i also have this same problem for identifying the selected rows on C1TrueDBGrid.

    I tried much ways....like

    dgdTariformList.SelectedStyle.BackColor = Color.DodgerBlue
    dgdTariformList.SelectedStyle.BackColor2 = Color.DodgerBlue

    How can i solve this...
    Plz help me.............. Thanks in advance......

    My id : jeneeshijk@yahoo.com or
    you can contact me on jeneesh.kv@eteamindia.com..



    http://helpcentral.componentone.com/cs/forums/p/73708/200084.aspx#200084

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.