Hello,
I bind grid view data source to TblProduct , Currently on row click I get value of each column ( visible / hidden )
Is there anyway to cast/extract data row based on datasource object ?
so instead of
rtID.Text = RGProduct.CurrentRow.Cells["ProductId"].Value.ToString();
rtName.Text = RGProduct.CurrentRow.Cells["ProductName"].Value.ToString();
....... for another 12 columns
will do something like
TblProduct p = new TblProduct();
p = RGProduct.CurrentRow.something that will bring back only bind columns
Thank You
Mansi
I bind grid view data source to TblProduct , Currently on row click I get value of each column ( visible / hidden )
Is there anyway to cast/extract data row based on datasource object ?
so instead of
rtID.Text = RGProduct.CurrentRow.Cells["ProductId"].Value.ToString();
rtName.Text = RGProduct.CurrentRow.Cells["ProductName"].Value.ToString();
....... for another 12 columns
will do something like
TblProduct p = new TblProduct();
p = RGProduct.CurrentRow.something that will bring back only bind columns
Thank You
Mansi