|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGridView Question - VB.NET 2005Hi
I am starting to use this powerful controls but I am having a little problem When I use ListView Control I could inherit the ListViewItem to add additional members typically for the Row ID in the database some times of more than 1 record (if the row contains related data from a number of tables) then I had all this info attached to each row How can I achieve anything like that in the DataGridView control? thank you, Samuel Samuel Shulman wrote:
> Hi Assuming the DataGrid has its DataSource as a DataTable's DefaultView,> > I am starting to use this powerful controls but I am having a little problem > > When I use ListView Control I could inherit the ListViewItem to add > additional members typically for the Row ID in the database some times of > more than 1 record (if the row contains related data from a number of > tables) then I had all this info attached to each row > > How can I achieve anything like that in the DataGridView control? > > thank you, > Samuel you would add another DataColumn to the DataTable and hide it: DataSet.Tables(table).Columns(column).ColumnMapping() = MappingType.Hidden B. I actually don't bind it
Samuel Show quoteHide quote "Brian Tkatch" <Maxwell_Sm***@ThePentagon.com> wrote in message news:1151593790.964053.160700@d56g2000cwd.googlegroups.com... > > Samuel Shulman wrote: >> Hi >> >> I am starting to use this powerful controls but I am having a little >> problem >> >> When I use ListView Control I could inherit the ListViewItem to add >> additional members typically for the Row ID in the database some times of >> more than 1 record (if the row contains related data from a number of >> tables) then I had all this info attached to each row >> >> How can I achieve anything like that in the DataGridView control? >> >> thank you, >> Samuel > > Assuming the DataGrid has its DataSource as a DataTable's DefaultView, > you would add another DataColumn to the DataTable and hide it: > > DataSet.Tables(table).Columns(column).ColumnMapping() = > MappingType.Hidden > > > B. > Samuel Shulman wrote:
Show quoteHide quote > I actually don't bind it Setting a DataSource on a Windows Form DataGrid does not require a> > Samuel > > > "Brian Tkatch" <Maxwell_Sm***@ThePentagon.com> wrote in message > news:1151593790.964053.160700@d56g2000cwd.googlegroups.com... > > > > Samuel Shulman wrote: > >> Hi > >> > >> I am starting to use this powerful controls but I am having a little > >> problem > >> > >> When I use ListView Control I could inherit the ListViewItem to add > >> additional members typically for the Row ID in the database some times of > >> more than 1 record (if the row contains related data from a number of > >> tables) then I had all this info attached to each row > >> > >> How can I achieve anything like that in the DataGridView control? > >> > >> thank you, > >> Samuel > > > > Assuming the DataGrid has its DataSource as a DataTable's DefaultView, > > you would add another DataColumn to the DataTable and hide it: > > > > DataSet.Tables(table).Columns(column).ColumnMapping() = > > MappingType.Hidden > > > > > > B. > > binding. B. I populate it manually
Show quoteHide quote "Brian Tkatch" <Maxwell_Sm***@ThePentagon.com> wrote in message news:1151610694.610444.92450@b68g2000cwa.googlegroups.com... > > Samuel Shulman wrote: >> I actually don't bind it >> >> Samuel >> >> >> "Brian Tkatch" <Maxwell_Sm***@ThePentagon.com> wrote in message >> news:1151593790.964053.160700@d56g2000cwd.googlegroups.com... >> > >> > Samuel Shulman wrote: >> >> Hi >> >> >> >> I am starting to use this powerful controls but I am having a little >> >> problem >> >> >> >> When I use ListView Control I could inherit the ListViewItem to add >> >> additional members typically for the Row ID in the database some times >> >> of >> >> more than 1 record (if the row contains related data from a number of >> >> tables) then I had all this info attached to each row >> >> >> >> How can I achieve anything like that in the DataGridView control? >> >> >> >> thank you, >> >> Samuel >> > >> > Assuming the DataGrid has its DataSource as a DataTable's DefaultView, >> > you would add another DataColumn to the DataTable and hide it: >> > >> > DataSet.Tables(table).Columns(column).ColumnMapping() = >> > MappingType.Hidden >> > >> > >> > B. >> > > > Setting a DataSource on a Windows Form DataGrid does not require a > binding. > > B. > Samuel Shulman wrote:
Show quoteHide quote > I populate it manually Perhaps you can adda DataGridMapping, add extra columns there, and set> > "Brian Tkatch" <Maxwell_Sm***@ThePentagon.com> wrote in message > news:1151610694.610444.92450@b68g2000cwa.googlegroups.com... > > > > Samuel Shulman wrote: > >> I actually don't bind it > >> > >> Samuel > >> > >> > >> "Brian Tkatch" <Maxwell_Sm***@ThePentagon.com> wrote in message > >> news:1151593790.964053.160700@d56g2000cwd.googlegroups.com... > >> > > >> > Samuel Shulman wrote: > >> >> Hi > >> >> > >> >> I am starting to use this powerful controls but I am having a little > >> >> problem > >> >> > >> >> When I use ListView Control I could inherit the ListViewItem to add > >> >> additional members typically for the Row ID in the database some times > >> >> of > >> >> more than 1 record (if the row contains related data from a number of > >> >> tables) then I had all this info attached to each row > >> >> > >> >> How can I achieve anything like that in the DataGridView control? > >> >> > >> >> thank you, > >> >> Samuel > >> > > >> > Assuming the DataGrid has its DataSource as a DataTable's DefaultView, > >> > you would add another DataColumn to the DataTable and hide it: > >> > > >> > DataSet.Tables(table).Columns(column).ColumnMapping() = > >> > MappingType.Hidden > >> > > >> > > >> > B. > >> > > > > > Setting a DataSource on a Windows Form DataGrid does not require a > > binding. > > > > B. > > the width to zero. B.
+ and & operators
XML Threads do not Terminate! a simply VB.net/ SQL SERVER question change cursor to hourglass (WaitCursor) between try..catch VB.net Express compiling problems Tranferring data to remote server.(how to http post)? Decoding Base64 GetPrivateProfileString problem! Icons for explorer app depending on OS |
|||||||||||||||||||||||