Hi Gaukhar Massabayeva,
Thank you for your interested in Syncfusion
products.
Query. Highlighting any row while
selecting a cell |
You can achieve this functionality using the ListBoxSelectionMode property.
Please refer the following codes which are used for your reference. this.gridGroupingControl1.TableOptions.ListBoxSelectionMode
=SelectionMode.MultiSimple; this.gridGroupingControl1.TableOptions.ListBoxSelectionColorOptions
= GridListBoxSelectionColorOptions.ApplySelectionColor; this.gridGroupingControl1.TableOptions.AllowSelection
=GridSelectionFlags.AlphaBlend; Please refer the following UG Link also. It will
helps to you to get more details about this property, |
Please let me know if you have further concerns.
Note
: Already you have created duplicated forum for this Query ( 106067) Please
follow up any one of query.
Vinish.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Hi Gaukhar
Massabayeva,
Thanks for your update.
Query Middle Selection |
We have analysis your last update. If you want to select
the middle cells of current row while clicking use the Current cell start
editing event. We have implement MidSelection property for your
requirement. Please refer the following codes. Please enable the MidSelection property in form load. void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs
e) { GridCurrentCell
c = this.gridGroupingControl1.TableControl.CurrentCell; if
(midselection == true && c.ColIndex
> 0 && c.RowIndex > 2) { this.gridGroupingControl1.TableControl.Selections.Clear(); int
colCount = this.gridGroupingControl1.TableDescriptor.Columns.Count; int
midCol = colCount / 2; if(colCount%2==1) this.gridGroupingControl1.TableControl.Selections.Add(GridRangeInfo.Cell(c.RowIndex,midCol+1)); else this.gridGroupingControl1.TableControl.Selections.Add(GridRangeInfo.Cells(c.RowIndex, midCol,
c.RowIndex, midCol + 1)); } } Please refer the attached sample also it will helps to you
for further analysis. |
Please let me know if you have further concerns.
Vinish.