Results 1 to 2 of 2

Thread: dataView, defaultview, dataSet - difrences when working with grid

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    Wink dataView, defaultview, dataSet - difrences when working with grid

    ok so now i have really headaque!
    i have datagrid
    i truely dont know which of the data object to bind the datagrid and what is the diffrences of it? (i need to view data in the grid and creat check event which retrieves the record index so i can ensure the user by record index to edit it in other place)
    if i use dataview when i get selected index in the view after i filter it is not the same index in the dataset which suppose to update my database?
    what is the best way???

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    It seems you are confusing yourself, and you didnt mention exactly why you need record index. Its obvious that if you do a filter on your dataset then the rows in your dataview are indexed from 0 to the count of rows and this index may not correspond to the index of rows in your dataset, and if you change the sorting then everything changes again. Dataview is the top most view of datasets, so you can change the way your data in a dataset are shown, and manipulate it, for example you may like to view the deleted rows, so you set the rowsate to 'deleted' .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width